Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

more quoting

  • Loading branch information...
commit db7bd543be948aac56e0b84945a1476dfdd219e0 1 parent 0fd5642
Bryan Garza authored

Showing 1 changed file with 6 additions and 7 deletions. Show diff stats Hide diff stats

  1. +6 7 sour
13 sour
@@ -95,8 +95,8 @@ function moveTo {
95 95 local dest="$2"
96 96
97 97 # checking that the file exists before moving
98   - if [[ -e $file ]]; then
99   - if ! mv $file $dest &> /dev/null; then
  98 + if [[ -e "$file" ]]; then
  99 + if ! mv "$file" "$dest" &> /dev/null; then
100 100 # Try sending the file to home dir.
101 101 if [[ ! $dest == $HOME ]]; then
102 102 echo "failed to move $file to $dest...sending to $HOME" >&2
@@ -113,12 +113,11 @@ function removeTemporaries {
113 113 if ((existing)); then
114 114
115 115 if ((forum)); then
116   - moveTo $smallimagelocation $working_dir
  116 + moveTo "$smallimagelocation" "$working_dir"
117 117 else
118 118 # If the if keep == true, existing == true, and forum ==
119 119 # false, that means that the only image that was used was not
120 120 # created by the program, but already existed, so we leave it.
121   - # Do nothing
122 121 :
123 122 fi
124 123
@@ -126,16 +125,16 @@ function removeTemporaries {
126 125 else
127 126
128 127 if ((forum)); then
129   - moveTo $smallimagelocation $working_dir
  128 + moveTo "$smallimagelocation" "$working_dir"
130 129 fi
131 130 # Regardless of the thumbnail, we still need to move the regular
132 131 # image
133   - moveTo $largeimagelocation $working_dir
  132 + moveTo "$largeimagelocation" "$working_dir"
134 133 fi
135 134
136 135 # keep == false, remove everything
137 136 else
138   - rm --force --recursive $location
  137 + rm --force --recursive "$location"
139 138 fi
140 139 }
141 140

0 comments on commit db7bd54

Please sign in to comment.
Something went wrong with that request. Please try again.