projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix enabling of init scripts.
[openwrt.git]
/
scripts
/
env
diff --git
a/scripts/env
b/scripts/env
index
a1211fb
..
1aee4b3
100755
(executable)
--- a/
scripts/env
+++ b/
scripts/env
@@
-148,10
+148,11
@@
env_clear() {
env_delete() {
local name="${1##*/}"
env_delete() {
local name="${1##*/}"
+ env_init
[ -z "$name" ] && usage
[ -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"
branch="$(git branch | grep '^\* ' | awk '{print $2}')"
branch="$(git branch | grep '^\* ' | awk '{print $2}')"
- [ "$name" = "branch" ] && error "cannot delete the currently selected environment"
+ [ "$name" = "
$
branch" ] && error "cannot delete the currently selected environment"
git branch -D "$name"
}
git branch -D "$name"
}
This page took
0.020189 seconds
and
4
git commands to generate.