changeset 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 53f704422fac
children 15f7b3ebf21b
files packaging/linux-installer.inc.in
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packaging/linux-installer.inc.in	Fri Aug 22 19:14:26 2014 +0200
+++ b/packaging/linux-installer.inc.in	Fri Aug 22 19:15:31 2014 +0200
@@ -180,6 +180,9 @@
   getxt "Cleaning up temporary stuff ...\n"
   # remove temporary directories,
   # $lock_dir is generate by the shar
+  if [ -z "${lock_dir-}" ]; then
+    exit
+  fi
   for dir in "${instcfg[PREFIX]}/$lock_dir" "$extra_bin_path" ; do
     [ -d "$dir" ] &&
         rm -rf "$dir"

http://wald.intevation.org/projects/trustbridge/