mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-18 03:30:35 +02:00
nodejs: show help if called with no parameter
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user