projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fortune
[feisty_meow.git]
/
scripts
/
archival
/
unpack.sh
diff --git
a/scripts/archival/unpack.sh
b/scripts/archival/unpack.sh
index 3fca182d2f9ae1fbc311bd664191e58960582f6b..8053c898bb3cacb3423d5847f5c617880d397842 100644
(file)
--- a/
scripts/archival/unpack.sh
+++ b/
scripts/archival/unpack.sh
@@
-30,7
+30,7
@@
if [ -z "$unpack_dir" ]; then
fi
if [ ! -d "$unpack_dir" ]; then
fi
if [ ! -d "$unpack_dir" ]; then
- mkdir "$unpack_dir"
+ mkdir
-p
"$unpack_dir"
if [ $? -ne 0 ]; then
echo "Could not create the unpacking directory: $unpack_dir"
exit 1
if [ $? -ne 0 ]; then
echo "Could not create the unpacking directory: $unpack_dir"
exit 1
@@
-65,6
+65,7
@@
if [[ "$archive_file" =~ .*\.tar$ \
|| "$archive_file" =~ .*\.iar$ \
|| "$archive_file" =~ .*\.oar$ \
|| "$archive_file" =~ .*\.tgz$ \
|| "$archive_file" =~ .*\.iar$ \
|| "$archive_file" =~ .*\.oar$ \
|| "$archive_file" =~ .*\.tgz$ \
+ || "$archive_file" =~ .*\.txz$ \
|| "$archive_file" =~ .*\.ova$ \
|| "$archive_file" =~ .*\.snarf$ \
]]; then
|| "$archive_file" =~ .*\.ova$ \
|| "$archive_file" =~ .*\.snarf$ \
]]; then
@@
-82,7
+83,7
@@
elif [[ "$archive_file" =~ .*\.7z$ ]]; then
7z x "$archive_file" &>/dev/null
save_err=$?
elif [[ "$archive_file" =~ .*\.rar$ ]]; then
7z x "$archive_file" &>/dev/null
save_err=$?
elif [[ "$archive_file" =~ .*\.rar$ ]]; then
- rar x "$archive_file" &>/dev/null
+
un
rar x "$archive_file" &>/dev/null
save_err=$?
fi
save_err=$?
fi