updated to use better name for folder, since one cannot find unpack command as fast if
authorChris Koeritz <fred@gruntose.com>
Sat, 29 Sep 2012 20:06:52 +0000 (16:06 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 29 Sep 2012 20:06:52 +0000 (16:06 -0400)
that's folder name too.

scripts/archival/unpack.sh

index de82c021e29a2b717c0cb61f8c65d01a4012e812..89573aba768c6fce365912da3d918f35860d0b46 100644 (file)
@@ -25,7 +25,7 @@ if [ ! -f "$archive_file" ]; then
 fi
 unpack_dir="$1"; shift
 if [ -z "$unpack_dir" ]; then
-  unpack_dir=$(echo unpacked_$(basename $archive_file) | sed -e 's/^\([^\.]*\)\..*/\1/')
+  unpack_dir=$(echo from_$(basename $archive_file) | sed -e 's/^\([^\.]*\)\..*/\1/')
 fi
 
 if [ ! -d "$unpack_dir" ]; then