Mercurial > trustbridge
comparison packaging/linux-installer.inc.in @ 937:f6b52f60f643
Check if lock_dir is set before using it in an rm -rf
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 22 Aug 2014 19:15:31 +0200 |
parents | e977f7a0e8fd |
children | 15f7b3ebf21b |
comparison
equal
deleted
inserted
replaced
936:53f704422fac | 937:f6b52f60f643 |
---|---|
178 cleanup() | 178 cleanup() |
179 { | 179 { |
180 getxt "Cleaning up temporary stuff ...\n" | 180 getxt "Cleaning up temporary stuff ...\n" |
181 # remove temporary directories, | 181 # remove temporary directories, |
182 # $lock_dir is generate by the shar | 182 # $lock_dir is generate by the shar |
183 if [ -z "${lock_dir-}" ]; then | |
184 exit | |
185 fi | |
183 for dir in "${instcfg[PREFIX]}/$lock_dir" "$extra_bin_path" ; do | 186 for dir in "${instcfg[PREFIX]}/$lock_dir" "$extra_bin_path" ; do |
184 [ -d "$dir" ] && | 187 [ -d "$dir" ] && |
185 rm -rf "$dir" | 188 rm -rf "$dir" |
186 done | 189 done |
187 } | 190 } |