commit ff0defeed0eea7b8d13deb56de0d136166082124
parent 1222309b87ee285b7602871ced7f51361727c988
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Thu, 16 Nov 2023 10:01:12 +0530
Fix argument parsing bug
Fix DESTDIR in 'install' script
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/install b/install
@@ -1,6 +1,6 @@
#!/bin/sh
-DESTDIR="${DESTDIR}/usr/local"
+: ${DESTDIR:=/usr/local}
BINDIR="${DESTDIR}/bin"
MANDIR="${DESTDIR}/share/man"
diff --git a/nb b/nb
@@ -47,7 +47,7 @@ test -z "${EDITOR}" && export EDITOR=vi
# if folder does not exist
cd "${NB_PATH}" || nb_fatal_error "NB_PATH is not a directory"
nb_option=${1}
-[ $? -gt 1 ] && shift
+[ $# -ge 1 ] && shift
case $nb_option in
#TODO pass params to nb_browse
'')nb_browse ;;