From: Felix Fietkau Date: Wed, 8 Oct 2008 19:15:26 +0000 (+0000) Subject: scripts/env: fix file syncing on env switch X-Git-Tag: v19.07.0-rc1~36081 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=02052624df9bfeac34c9aa4d7760e55787e87ab6;p=openwrt%2Fstaging%2Fhauke.git scripts/env: fix file syncing on env switch SVN-Revision: 12925 --- 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 }