fixed fortune reference to ananova, cleaned up somewhat final version of unpack script.
authorChris Koeritz <fred@gruntose.com>
Sat, 8 Sep 2012 19:52:54 +0000 (15:52 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 8 Sep 2012 19:52:54 +0000 (15:52 -0400)
database/fortunes.dat
scripts/archival/unpack.sh

index e56625ae0a913b3b5bfd4d4790cbb5e0203a814f..0b91e10a0ed53148aa3f78d41dc97668a6d890d4 100644 (file)
@@ -13360,7 +13360,7 @@ only different kinds of good weather.
   -- John Ruskin
 ~
 She's not a babe.  She's a sophisticated real-time computer system.
-  -- Spokesman for Anova, a virtual news anchor
+  -- Spokesman for Ananova, a virtual news anchor
 ~
 The man who laughs has not yet been told the terrible news.
   -- Berthold Brecht
index cabb65d397dc5b0fb4c91a6f77ebc83c84aba36c..dfa3d1c34c21034fda4aad81a9e45e93b7aa3fec 100644 (file)
@@ -37,7 +37,7 @@ if [ ! -d "$unpack_dir" ]; then
 fi
 
 # save where we started out.
-ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && \pwd )"
+ORIGINATING_FOLDER="$( \pwd )"
 
 pushd "$unpack_dir" &>/dev/null
 
@@ -51,13 +51,12 @@ if [ ! -f "$unpack_file" ]; then
   fi
 fi
 
-if [[ $unpack_file =~ .*\.tar ]]; then
-  tar -f $unpack_file
-elif [[ $unpack_file =~ .*\.tar\.gz \
-    || $unpack_file =~ .*\.tar\.bz2 \
-    || $unpack_file =~ .*\.tgz ]]; then
+if [[ $unpack_file =~ .*\.tar$ \
+    || $unpack_file =~ .*\.tar\.gz$ \
+    || $unpack_file =~ .*\.tar\.bz2$ \
+    || $unpack_file =~ .*\.tgz$ ]]; then
   tar -xf $unpack_file
-elif [[ $unpack_file =~ .*\.zip ]]; then
+elif [[ $unpack_file =~ .*\.zip$ ]]; then
   unzip $unpack_file
 fi
 save_err=$?