[PC-BSD Commits] r491 - pcbsd/trunk/system-overlay/PCBSD/Scripts/Context

svn at pcbsd.org svn at pcbsd.org
Mon Jul 16 10:23:25 PDT 2007


Author: kris
Date: 2007-07-16 18:23:25 +0100 (Mon, 16 Jul 2007)
New Revision: 491

Modified:
   pcbsd/trunk/system-overlay/PCBSD/Scripts/Context/uncompress.sh
Log:

Upgrade the uncompress script to support zip rar and tar



Modified: pcbsd/trunk/system-overlay/PCBSD/Scripts/Context/uncompress.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/Scripts/Context/uncompress.sh	2007-07-16 16:39:14 UTC (rev 490)
+++ pcbsd/trunk/system-overlay/PCBSD/Scripts/Context/uncompress.sh	2007-07-16 17:23:25 UTC (rev 491)
@@ -27,9 +27,25 @@
 if [ "${1}" = "tgz" ]
 then
   cd "${2}"
-  tar xvzf "${3}" 2>/home/kris/err
+  tar xvzf "${3}"
 fi
 
+if [ "${1}" = "tar" ]
+then
+  cd "${2}"
+  tar xvf "${3}"
+fi
 
+if [ "${1}" = "rar" ]
+then
+  cd "${2}"
+  unrar "${3}" 
+fi
 
+if [ "${1}" = "zip" ]
+then
+  cd "${2}"
+  unzip "${3}" 
+fi
+
 kill -9 $PID



More information about the Commits mailing list