aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-17 21:02:43 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-17 21:02:43 +0530
commit472564fd7f1245617a792f20cdf43ca47e4164e5 (patch)
tree70cd365c3c14843e56516ddda1a17f2ae7851086
parent4f787fd59e7b69e771f53478477727e38a434a43 (diff)
downloadnnn-472564fd7f1245617a792f20cdf43ca47e4164e5.tar.gz
Do not update merged file, remove README.md
-rwxr-xr-xplugins/getplugs3
-rwxr-xr-xplugins/imgresize6
2 files changed, 3 insertions, 6 deletions
diff --git a/plugins/getplugs b/plugins/getplugs
index e6d235f..d27a522 100755
--- a/plugins/getplugs
+++ b/plugins/getplugs
@@ -15,7 +15,6 @@ is_cmd_exists () {
merge () {
vimdiff $1 $2
- cp -vRf $1 $2
}
prompt () {
@@ -63,4 +62,4 @@ done
cd ../..
$sucmd mv -vf nnn-master/misc/nlaunch/nlaunch /usr/local/bin/
-rm -rf nnn-master/ master.tar.gz README.md
+rm -rf nnn-master/ master.tar.gz $PLUGIN_DIR/README.md
diff --git a/plugins/imgresize b/plugins/imgresize
index 6d016f1..01917e7 100755
--- a/plugins/imgresize
+++ b/plugins/imgresize
@@ -25,8 +25,6 @@ if [ -z "$res" ]; then
read res
fi
-if ! [ -z "$res" ]; then
- if ! [ -z "$minsize" ]; then
- imgp -ackx "$res" -s "$minsize"
- fi
+if ! [ -z "$res" ] && ! [ -z "$minsize" ]; then
+ imgp -ackx "$res" -s "$minsize"
fi