diff options
Diffstat (limited to 'lbmk')
-rwxr-xr-x | lbmk | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -37,11 +37,12 @@ main() [ $# -lt 1 ] && err "Too few arguments. Try: ${0} help" buildpath="./resources/scripts/${0##*/}" - mode="${1}" - ./.gitcheck + + ./.gitcheck || err "/.gitcheck call from main, in /lbmk" [ "${mode}" = "help" ] && usage ${0} && exit 0 [ $# -lt 2 ] && usage ${0} && exit 1 + if [ "${mode}" = "dependencies" ]; then install_dependencies $@ || err "Could not install dependencies" exit 0 @@ -73,7 +74,7 @@ main() "${buildpath}/${mode}/${option}" $@ || err "lbmk error" esac - ./.gitcheck clean + ./.gitcheck clean || err "/.gitcheck clean call from main, in /lbmk" } install_dependencies() |