summaryrefslogtreecommitdiff
path: root/find-deprecated-pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'find-deprecated-pkgs')
-rwxr-xr-xfind-deprecated-pkgs6
1 files changed, 3 insertions, 3 deletions
diff --git a/find-deprecated-pkgs b/find-deprecated-pkgs
index 24c63b3..841045f 100755
--- a/find-deprecated-pkgs
+++ b/find-deprecated-pkgs
@@ -270,10 +270,10 @@ check(){
msg 'done'
}
-if [[ $@ = "" ]]; then
- usage
-else
+if [[ ${#@} -gt 0 ]]; then
ip r | grep ^default | awk '{print $3}' |
ping -q -w1 -c1 $(tail -n1 /dev/stdin) &> /dev/null || err 'You must have internet connection to run this program'
for arg in $@; do check $arg; done
+else
+ usage
fi