escape file/ folder names
This commit is contained in:
parent
620857fc8a
commit
6b07a1175f
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source=$1
|
source=$1
|
||||||
destinationPart=${1%/}; # cut off trailing "/"
|
destinationPart=${1%/}; # cut off trailing "/"
|
||||||
# tar cfv $destinationPart.tar $source && xz $destinationPart.tar;
|
# tar cfv "$destinationPart.tar" "$source" && xz "$destinationPart.tar";
|
||||||
tar c -I"xz -v" -vf $destinationPart.tar.xz $source
|
tar c -I"xz -v" -vf "$destinationPart.tar.xz" "$source"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source=$1;
|
source=$1;
|
||||||
# archive=${source%.xz}; # cut off trailing ".xz"
|
# archive=${source%.xz}; # cut off trailing ".xz"
|
||||||
# unxz $source && tar xfv $archive
|
# unxz "$source" && tar xfv "$archive"
|
||||||
tar x -I"unxz -v" -vf $source
|
tar x -I"unxz -v" -vf "$source"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user