stopped using a mount, which is on an insecure device.
[feisty_meow.git] / scripts / archival / unpack.sh
index 3fca182d2f9ae1fbc311bd664191e58960582f6b..e420f4e4caa63af9c9cfe0c635454d762fec0f50 100644 (file)
@@ -30,7 +30,7 @@ if [ -z "$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
@@ -82,7 +82,7 @@ elif [[ "$archive_file" =~ .*\.7z$ ]]; then
   7z x "$archive_file" &>/dev/null
   save_err=$?
 elif [[ "$archive_file" =~ .*\.rar$ ]]; then
-  rar x "$archive_file" &>/dev/null
+  unrar x "$archive_file" &>/dev/null
   save_err=$?
 fi