Skip to content

Commit

Permalink
is_null: whether a variable is null
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCodeMonkey committed Jun 28, 2019
1 parent 6fd2bc6 commit f7ee1d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/is_null.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
var=$1
if [ ! $var ]; then
echo "is null"
else
echo "not null"
fi

0 comments on commit f7ee1d0

Please sign in to comment.