From: Rosen Penev Date: Wed, 1 Jan 2020 02:01:42 +0000 (-0800) Subject: scripts/env: use explicit find location X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2fe5319d587c9c66ecbd7acbd5efbc1ff6fac8a8;p=openwrt%2Fstaging%2Fwigyori.git scripts/env: use explicit find location Some find binaries do not imply the current directory. Found with shellcheck. Signed-off-by: Rosen Penev --- diff --git a/scripts/env b/scripts/env index 84166ae5fe..f93a587894 100755 --- a/scripts/env +++ b/scripts/env @@ -136,7 +136,7 @@ env_clear() { env_init [ -L "$BASEDIR/.config" ] && rm -f "$BASEDIR/.config" [ -L "$BASEDIR/files" ] && rm -f "$BASEDIR/files" - [ -f "$ENVDIR/.config" ] || ( cd "$ENVDIR/files" && find | grep -vE '^\.$' > /dev/null ) + [ -f "$ENVDIR/.config" ] || ( cd "$ENVDIR/files" && find . | grep -vE '^\.$' > /dev/null ) env_sync_data if ask_bool 1 "Do you want to keep your current config and files"; then mkdir -p "$BASEDIR/files"