ha, better name, also doesn't start with conflicting letter.
authorChris Koeritz <fred@gruntose.com>
Sat, 29 Sep 2012 21:48:50 +0000 (17:48 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 29 Sep 2012 21:48:50 +0000 (17:48 -0400)
scripts/archival/unpack.sh

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