]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #398
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 6 Dec 2019 03:20:23 +0000 (08:50 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 6 Dec 2019 03:20:23 +0000 (08:50 +0530)
plugins/getplugs

index 3c8d7aa7d99c0c863d3e91ecfa682c1b1f55e3a4..3404488fd6ca2bfd2001d28c5825b14f6ceb56f0 100755 (executable)
@@ -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