diff --git a/bin/srcdist.rawball b/bin/srcdist.rawball index 55b46fa..3af5932 100755 --- a/bin/srcdist.rawball +++ b/bin/srcdist.rawball @@ -12,7 +12,7 @@ mb_rawball= mb_tarball= mb_tarball_sha256= -mb_script="$0" +mb_script="${0}" mb_status=1 mb_manifest=MANIFEST.rawball @@ -32,7 +32,8 @@ rawball_usage() printf ' files from a known upstream source distribution tarball,\n' >&2 printf ' along with a manifest.\n\n' >&2 - printf '\nThe --ruledir argument should point to a directory containing the following files:\n' >&2 + printf '\nThe --ruledir argument should point to a directory ' >&2 + printf 'containing the following files:\n' >&2 printf ' upstream.sha256.known\n' >&2 printf ' rawball.include.patterns (appropriate for pax)\n' >&2 printf ' rawball.exclude.patterns (appropriate for grep -v -f)\n\n' >&2 @@ -69,7 +70,8 @@ rawball_ruledir_error() { mb_status=2 - printf '\n*** %s: a required file in %s is missing!\n\n' "$mb_script" "$mb_ruledir" >&2 + printf '\n*** %s: a required file in %s is missing!\n\n' \ + "$mb_script" "$mb_ruledir" >&2 rawball_usage } @@ -101,7 +103,8 @@ rawball_init_vars() mb_known_sha256="${mb_known_sha256%% *}" if [ "$mb_known_sha256" != "$mb_tarball_sha256" ]; then - printf '\n*** %s: %s is not a known sha-256 signature!\n\n' "$mb_script" "$mb_tarball_sha256" >&2 + printf '\n*** %s: %s is not a known sha-256 signature!\n\n' \ + "$mb_script" "$mb_tarball_sha256" >&2 exit 2 fi } @@ -130,7 +133,8 @@ rawball_extract_upstream_tarball() mb_rawdir=${mb_topdir}.raw if [ -d ${mb_rawdir} ]; then - printf '\n*** %s: the directory `%s already exists!\n\n' "$mb_script" "${mb_rawdir}'" >&2 + printf '\n*** %s: the directory `%s already exists!\n\n' \ + "$mb_script" "${mb_rawdir}'" >&2 exit 2 fi