~riderius/riderius-cogs

62998d4fae15254fb054a16ec1021a87eb953d10 — riderius 2 months ago b724fe0
newcog.sh: add message if cog name missing

Signed-off-by: riderius <riderius.help@gmail.com>
1 files changed, 6 insertions(+), 0 deletions(-)

M newcog.sh
M newcog.sh => newcog.sh +6 -0
@@ 1,4 1,10 @@
#!/usr/bin/bash
# set -euo pipefail

if [ -z "$1" ]; then
    echo "USAGE: ./newcog [name of new cog]"
    exit 1
fi

NAME=$1
LOWERCASE_NAME=`echo $1 | tr '[:upper:]' '[:lower:]'`