Commit b7102f45 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget fix: use POSIX-compatible syntax for removing spaces in header value

parent 3c4d89bb
...@@ -486,7 +486,7 @@ while [ -n "$1" ] ; do ...@@ -486,7 +486,7 @@ while [ -n "$1" ] ; do
# TODO: error if header value contains spaces # TODO: error if header value contains spaces
if [ -z "$argvalue" ];then if [ -z "$argvalue" ];then
shift shift
argvalue="${1/ /}" argvalue="$(printf '%s' "$1" | tr -d ' ')"
fi fi
WGETHEADER="--header=$argvalue" WGETHEADER="--header=$argvalue"
CURLHEADER="--header $argvalue" CURLHEADER="--header $argvalue"
......
Markdown is supported
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