Install to directory: normalise the path to an absolute directory name.
authorMichael Prokop <mika@grml.org>
Thu, 3 Dec 2009 18:21:18 +0000 (19:21 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 3 Dec 2009 21:21:52 +0000 (22:21 +0100)
grml-debootstrap

index 0409092..681acc7 100755 (executable)
@@ -574,6 +574,10 @@ set_target_directory(){
     TUNE2FS=''
     FSCK=''
     GRUB=''
+    # make sure we normalise the path to an absolute directory name so something like:
+    #  mkdir -p foo/a bar/a; (cd foo; grml-debootstrap -t a)&; (cd bar; grml-debootstrap -t a)&; wait
+    # works
+    TARGET="$(readlink -f $TARGET)"
 }
 
 if [ -b "$TARGET" ] ; then