nodejs: show help if called with no parameter

This commit is contained in:
openoms
2020-06-26 09:41:11 +01:00
parent 16ca2d1e76
commit 0d4e684ef4

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# command info
if [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "small config script to install NodeJs"
echo "bonus.nodejs.sh [on|off]"
exit 1