Skip to content

Commit

Permalink
Clean up clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
shreve committed Sep 3, 2021
1 parent 2574d75 commit dfef4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This is an unfinished script that will delete the cluster cloudformation along with any other loose ends
# Execute it with a tag to identify which cluster to delete such as "./clean.sh tag"

if grep '^[-0-9a-zA-Z]*$' <<<$1 && [ ! -z "$1" ];
if grep '^[-0-9a-zA-Z]*$' <<< "$1" && [ -n "$1" ];
then echo "Tag is valid";
else echo "Tag must be alphanumeric." && exit 1;
fi
Expand Down

0 comments on commit dfef4d4

Please sign in to comment.