X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/accaafac2719bd071c8b4942768560cd5bf3025c..617d2b48834cb1ca5e8be911ce35da9cfd6816b0:/scripts/env diff --git a/scripts/env b/scripts/env index d783e20ef..83fe8a6af 100755 --- a/scripts/env +++ b/scripts/env @@ -158,11 +158,11 @@ env_delete() { env_switch() { local name="${1##*/}" [ -z "$name" ] && usage - [ -f "$envdir/.git/refs/heads/$name" ] || error "environment '$name' not found" + [ -f "$ENVDIR/.git/refs/heads/$name" ] || error "environment '$name' not found" env_init env_ask_sync - git-checkout "$NAME" + git-checkout "$name" env_link_config }