summaryrefslogtreecommitdiff
path: root/scripts
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
parent0f62f10e2d8da2b35e7ed3fff2ca71871c96dd82 (diff)
downloadmtk-20170518-02052624df9bfeac34c9aa4d7760e55787e87ab6.zip
mtk-20170518-02052624df9bfeac34c9aa4d7760e55787e87ab6.tar.gz
mtk-20170518-02052624df9bfeac34c9aa4d7760e55787e87ab6.tar.bz2
scripts/env: fix file syncing on env switch
SVN-Revision: 12925
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/env2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/env b/scripts/env
index 642a329..65594f9 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
}