summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfancyIP9
1 files changed, 4 insertions, 5 deletions
diff --git a/fancyIP b/fancyIP
index eede344..118e832 100755
--- a/fancyIP
+++ b/fancyIP
@@ -62,18 +62,17 @@ if [ $# -eq 0 ] && [ -t 0 ]; then
echo "nada"
#No arguments and pipes
showDB
-
-else
+ exit
+fi
+#else
-while [[ -n $1 ]]; do
+while [ -n "$1" ]; do
case $1 in
-b | --bottom) bottom=1
- shift
# filename=$1
;;
-n | --nocomment) nocomment=1
- shift
# filename=$1
;;
-h | --help) usage