fix(bpkg-package): remove '-e' in echo when outputing prop value

pull/156/head
Joseph Werle 2 years ago committed by Joseph Werle
parent 9f60f492e9
commit 7d6278ef57

@ -150,13 +150,15 @@ bpkg_package () {
if (( ${#results[@]} == 1 )); then if (( ${#results[@]} == 1 )); then
rc=0 rc=0
if (( ${#peek[@]} > 0 )); then if (( ${#peek[@]} > 0 )); then
echo -e "${results[@]}" | {
awk '{ $1=""; print $0 }' | ## print value echo "${results[@]}" |
sed 's/^\s*//g' | ## remove leading whitespace awk '{ $1=""; print $0 }' | ## print value
sed 's/\s*$//g' | ## remove trailing whitespace sed 's/^\s*//g' | ## remove leading whitespace
sed 's/^"//g' | ## remove leading quote from JSON value sed 's/\s*$//g' | ## remove trailing whitespace
sed 's/"$//g' | ## remove trailing quote from JSON value sed 's/^"//g' | ## remove leading quote from JSON value
sed 's/^ *//;s/ *$//' || return $? sed 's/"$//g' | ## remove trailing quote from JSON value
sed 's/^ *//;s/ *$//'
} || return $?
else else
echo -e "${results[@]}" echo -e "${results[@]}"
fi fi

Loading…
Cancel
Save