[med-svn] [Git][med-team/community/helper-scripts][master] Enable calling script without any arguments
Andreas Tille
gitlab at salsa.debian.org
Thu Sep 12 15:19:12 BST 2019
Andreas Tille pushed to branch master at Debian Med / community / helper-scripts
Commits:
28ebaa3f by Andreas Tille at 2019-09-12T14:18:43Z
Enable calling script without any arguments
- - - - -
1 changed file:
- inject-into-salsa-git
Changes:
=====================================
inject-into-salsa-git
=====================================
@@ -28,10 +28,11 @@ can be created.
EOHELP
}
-
-if [ "-h"="$1" -o "--help"="$1" ] ; then
- help
- exit
+if [ $# -gt 0 ] ; then
+ if [ "-h"="$1" -o "--help"="$1" ] ; then
+ help
+ exit
+ fi
fi
set -u
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/28ebaa3f180e654d8e35f0338ae2ed169ac368a2
--
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/28ebaa3f180e654d8e35f0338ae2ed169ac368a2
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190912/5fa5e399/attachment.html>
More information about the debian-med-commit
mailing list