Skip to content
Snippets Groups Projects
Commit a3559a4d authored by Benny Baumann's avatar Benny Baumann Committed by Matthias Schiffer
Browse files

contrib/sign.sh: fix handling of filenames with spaces

parent 9449f0f5
No related branches found
No related tags found
No related merge requests found
......@@ -18,23 +18,23 @@ See also
EOHELP
exit 1
fi
SECRET=$1
manifest=$2
upper=$(mktemp)
lower=$(mktemp)
SECRET="$1"
manifest="$2"
upper="$(mktemp)"
lower="$(mktemp)"
awk "BEGIN { sep=0 }
/^---\$/ { sep=1; next }
{ if(sep==0) print > \"$upper\";
else print > \"$lower\"}" \
$manifest
ecdsasign $upper < $SECRET >> $lower
cat $upper > $manifest
echo --- >> $manifest
cat $lower >> $manifest
rm -f $upper $lower
"$manifest"
ecdsasign "$upper" < "$SECRET" >> "$lower"
cat "$upper" > "$manifest"
echo --- >> "$manifest"
cat "$lower" >> "$manifest"
rm -f "$upper" "$lower"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment