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
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