]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/sync-pull: update argument check to look for $3 2143/head
authorDan Mick <dmick@redhat.com>
Wed, 28 Jun 2023 23:14:19 +0000 (16:14 -0700)
committerDan Mick <dmick@redhat.com>
Wed, 28 Jun 2023 23:14:19 +0000 (16:14 -0700)
Catch the error where three arguments are not supplied.

Signed-off-by: Dan Mick <dmick@redhat.com>
scripts/sync-pull

index 15633c54c2136bfd90e37a2d0416bfec8705e702..23edceab352b445fb99d0b1d9f378a3f16a5f435 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-: ${2?"Usage: $0 \$project \$release \$sha1"}
+: ${3?"Usage: $0 \$project \$release \$sha1"}
   #  Script exits here if command-line parameter absent,
   #+ with following error message.
   #    usage-message.sh: 1: Usage: sync-pull $project $release $sha1