aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-12-31 18:01:42 -0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-02 23:51:45 +0100
commit2fe5319d587c9c66ecbd7acbd5efbc1ff6fac8a8 (patch)
tree70a8b99d752bed2637f5d0fe9c254d809877b8d0 /scripts
parent3b013dcdf8d8aa0e3601e3aac30342318025e32a (diff)
downloadupstream-2fe5319d587c9c66ecbd7acbd5efbc1ff6fac8a8.tar.gz
upstream-2fe5319d587c9c66ecbd7acbd5efbc1ff6fac8a8.tar.bz2
upstream-2fe5319d587c9c66ecbd7acbd5efbc1ff6fac8a8.zip
scripts/env: use explicit find location
Some find binaries do not imply the current directory. Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/env2
1 files changed, 1 insertions, 1 deletions
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"