diff --git a/scripts/archive_and_compress.sh b/scripts/archive_and_compress.sh index b4648d2..6b282eb 100755 --- a/scripts/archive_and_compress.sh +++ b/scripts/archive_and_compress.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash source=$1 destinationPart=${1%/}; # cut off trailing "/" -# tar cfv $destinationPart.tar $source && xz $destinationPart.tar; -tar c -I"xz -v" -vf $destinationPart.tar.xz $source +# tar cfv "$destinationPart.tar" "$source" && xz "$destinationPart.tar"; +tar c -I"xz -v" -vf "$destinationPart.tar.xz" "$source" diff --git a/scripts/decompress_and_unarchive.sh b/scripts/decompress_and_unarchive.sh index e2ed14c..ddff8ca 100755 --- a/scripts/decompress_and_unarchive.sh +++ b/scripts/decompress_and_unarchive.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash source=$1; # archive=${source%.xz}; # cut off trailing ".xz" -# unxz $source && tar xfv $archive -tar x -I"unxz -v" -vf $source +# unxz "$source" && tar xfv "$archive" +tar x -I"unxz -v" -vf "$source"