Image 01
profile-image

shirka

Andre DUCLOS Kourou, French Guyana
Extract archive

Dolphin Service Menus by Topazz 12 comments

Hi,

This patch for extract archive to path like this:
"test.tar.bz2" to "test" dir
Without this patch:
"test.tar.bz2" to "test.tar" dir

Bye.

--- extract_archive-old.sh 2007-05-13 19:07:04.000000000 -0300
+++ extract_archive-new.sh 2007-05-14 08:23:00.000000000 -0300
@@ -11,6 +11,14 @@
ext=${nameext##*.}
ext=`echo $ext | tr -s A-Z a-z` # in case extension is .ACE

+nameext2=${nameext%.*}
+ext2=${nameext2##*.}
+ext2=`echo $ext2 | tr -s A-Z a-z`
+if [ $ext2 = "tar" ]
+then
+ nameext=$nameext2
+fi
+
if [ $option = "-here" ];
then
dir_to_extract=$directory; - May 14 2007