Commit 7b44a063 authored by Vermeeren's avatar Vermeeren

include.sh: use printf for external strings

parent 82e8faa9
......@@ -2,7 +2,7 @@
for i in /var/cache/pbuilder/result/*.changes; do
head -n 1 "$i" | grep -qe '-----BEGIN PGP SIGNED MESSAGE-----'
if [ $? != 0 ]; then
echo "cannot find pgp signature: $i"
printf 'cannot find pgp signature: %s\n' "$i"
echo "exit"
exit 1
fi
......@@ -11,7 +11,7 @@ done
for i in /var/cache/pbuilder/result/*.changes; do
dist="$(sed -ne 's/^Distribution: //p' "$i")"
if [ $? != 0 ] || [ ! -n "$dist" ]; then
echo "cannot find distribution: $i"
printf 'cannot find distribution: %s\n' "$i"
echo 'skipping file'
continue
fi
......@@ -20,7 +20,7 @@ for i in /var/cache/pbuilder/result/*.changes; do
read -r execute
if [ $? != 0 ] || [ -n "$execute" ] && \
[ "$execute" != 'y' ] && [ "$execute" != 'Y' ]; then
echo "answer was not '', 'y' or 'Y': $execute"
printf '%s: %s\n' "answer was not '', 'y' or 'Y'" "$execute"
echo 'skipping file'
continue
fi
......
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