aboutsummaryrefslogtreecommitdiffstats
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
commit3be34e3543337d91a61efa3b500dff1b21654a69 (patch)
treed3cd28688adebfcff1e184b537b0b01c2c5ea628 /scripts
parent20c30f262e4e8349126eea1fb061fe7bcd626d67 (diff)
downloadupstream-3be34e3543337d91a61efa3b500dff1b21654a69.tar.gz
upstream-3be34e3543337d91a61efa3b500dff1b21654a69.tar.bz2
upstream-3be34e3543337d91a61efa3b500dff1b21654a69.zip
scripts/env: fix file syncing on env switch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12925 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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
}