redboot.c - adds implicit creation of boardconfig partition
[openwrt.git] / scripts / env
index d783e20..83fe8a6 100755 (executable)
@@ -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
 }
 
This page took 0.023502 seconds and 4 git commands to generate.