tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / scripts / env
index c81fbf8ddc294e1950b9791c88e8f6bb5b01cb55..5987b4160f4a87a825ee13d8459ee9ae2c31e780 100755 (executable)
@@ -22,7 +22,7 @@ Commands:
 Options:
 
 EOF
-       exit ${1:-1}
+       exit "${1:-1}"
 }
 
 error() {
@@ -57,11 +57,11 @@ env_init() {
        if [ -z "$CREATE" ]; then
                [ -d "$ENVDIR" ] || exit 0
        fi
-       command -v git || error "Git is not installed"
+       command -v git >/dev/null || error "Git is not installed"
        mkdir -p "$ENVDIR" || error "Failed to create the environment directory"
        cd "$ENVDIR" || error "Failed to switch to the environment directory"
        [ -d .git ] || { 
-               git init &&
+               git init -b master &&
                touch .config &&
                mkdir files &&
                git add . &&