aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/getplugs
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-06 08:50:23 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-06 08:50:23 +0530
commit70f3bd2e5376906d5e83725eddacfbc05c456c53 (patch)
tree6dd8ba988e20df289c748cb00d750eebab9d2515 /plugins/getplugs
parent7f2bf343f831897fba3357abe14b6c3fe59ddffb (diff)
downloadnnn-70f3bd2e5376906d5e83725eddacfbc05c456c53.tar.gz
Fix #398
Diffstat (limited to 'plugins/getplugs')
-rwxr-xr-xplugins/getplugs5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/getplugs b/plugins/getplugs
index 3c8d7aa..3404488 100755
--- a/plugins/getplugs
+++ b/plugins/getplugs
@@ -50,7 +50,8 @@ curl -Ls -O https://github.com/jarun/nnn/archive/master.tar.gz
tar -zxf master.tar.gz
cd nnn-master/plugins || exit 1
-for f in *; do
+
+for f in $(find . -maxdepth 1 \( ! -iname "." ! -iname "*.md" \)); do
if [ -f ../../plugins/"$f" ]; then
if [ "$(diff --brief "$f" ../../plugins/"$f")" ]; then
prompt "$f"
@@ -63,4 +64,4 @@ done
cd ../.. || exit 1
$sucmd mv -vf nnn-master/misc/nlaunch/nlaunch /usr/local/bin/
-rm -rf nnn-master/ master.tar.gz "$PLUGIN_DIR"/README.md
+rm -rf nnn-master/ master.tar.gz