updated to handle tar files without compression in unpack, removed
[feisty_meow.git] / scripts / archival / unpack.sh
index 38629ec8a3dee9b59e4e715c302ba26a4c4fec0f..cabb65d397dc5b0fb4c91a6f77ebc83c84aba36c 100644 (file)
@@ -51,7 +51,9 @@ if [ ! -f "$unpack_file" ]; then
   fi
 fi
 
-if [[ $unpack_file =~ .*\.tar\.gz \
+if [[ $unpack_file =~ .*\.tar ]]; then
+  tar -f $unpack_file
+elif [[ $unpack_file =~ .*\.tar\.gz \
     || $unpack_file =~ .*\.tar\.bz2 \
     || $unpack_file =~ .*\.tgz ]]; then
   tar -xf $unpack_file