Permalink
Browse files

Check required bash version

  • Loading branch information...
1 parent 5c1ac3e commit 59d89c22cd73e9f859d13999ff2137431cad720c @rg3 committed Nov 1, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 lddsafe
View
@@ -26,6 +26,10 @@ checkreadable()
fi
}
+# Check for bash version.
+[ -n "$BASH_VERSION" ] || die "Bash required"
+[ ${BASH_VERSINFO[0]} -ge 4 ] || die "Bash version 4 or later required"
+
# Check needed programs.
checkexec /usr/bin/objdump
checkexec /bin/cat

0 comments on commit 59d89c2

Please sign in to comment.