Commit 07e9e53e authored by R's avatar R
Browse files

fixed pack: files with spaces now work

parent b4a41ea4
......@@ -167,7 +167,7 @@ fi
BASENAME="$USERBASENAME"
if [ -z "$BASENAME" ]
then
BASENAME="$(basename $1)"
BASENAME="$(basename "$1")"
BASENAME="${BASENAME%.*}"
fi
BASENAME="$USE_DATE$USE_TIME$BASENAME"
......@@ -179,16 +179,16 @@ result=-3
if [[ "$PACKER" =~ [^bg]zip$ ]]
then
# zip doesn't care if it's one or many
$PACKER r "$BASENAME$EXT" $@
$PACKER -r "$BASENAME$EXT" "$@"
result=$?
elif [ $# -gt 1 -o ! -f "$1" ]
then
$TAR -I"$PACKER" -cf "$BASENAME.tar$EXT" $@
$TAR -I"$PACKER" -cf "$BASENAME.tar$EXT" "$@"
result=$?
else
if [ -z "$USERBASENAME" ]
then
BASENAME="$(basename $1)"
BASENAME="$(basename "$1")"
fi
"$PACKER" -kc "$1" > "$BASENAME$EXT"
result=$?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment