Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robert Labudda
utils
Commits
07e9e53e
Commit
07e9e53e
authored
Oct 27, 2019
by
R
Browse files
fixed pack: files with spaces now work
parent
b4a41ea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pack
View file @
07e9e53e
...
...
@@ -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
=
$?
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment