aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/env
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-08 19:15:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-08 19:15:26 +0000
commit02052624df9bfeac34c9aa4d7760e55787e87ab6 (patch)
treed7c78da3375511d81d61d66b4dda006661feff60 /scripts/env
parent0f62f10e2d8da2b35e7ed3fff2ca71871c96dd82 (diff)
downloadupstream-02052624df9bfeac34c9aa4d7760e55787e87ab6.tar.gz
upstream-02052624df9bfeac34c9aa4d7760e55787e87ab6.tar.bz2
upstream-02052624df9bfeac34c9aa4d7760e55787e87ab6.zip
scripts/env: fix file syncing on env switch
SVN-Revision: 12925
Diffstat (limited to 'scripts/env')
-rwxr-xr-xscripts/env2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/env b/scripts/env
index 642a329c16..65594f9a5d 100755
--- a/scripts/env
+++ b/scripts/env
@@ -119,12 +119,12 @@ env_revert() {
}
env_ask_sync() {
+ env_sync_data
LINES="$(env_diff | wc -l)" # implies env_init
[ "$LINES" -gt 0 ] && {
if ask_bool 1 "Do you want to save your changes"; then
env_sync
else
- env_sync_data
env_do_reset
fi
}