]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix togglex: handle filenames with spaces
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 15 Dec 2020 17:21:25 +0000 (22:51 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 15 Dec 2020 17:21:25 +0000 (22:51 +0530)
plugins/togglex

index e2a23f4123de298fc7e5365dd89f43cdde96c119..d65e00f2050e3fd9984102e4a320c54d8b26e335 100755 (executable)
@@ -17,4 +17,4 @@ if [ ! -s "$selection" ]; then
     exit
 fi
 
-xargs -0 -I {} sh -c 'if [ -x {} ] ; then chmod -x {} ; else chmod +x {} ; fi' < "$selection"
+xargs -0 -I {} sh -c 'if [ -x "{}" ] ; then chmod -x "{}" ; else chmod +x "{}" ; fi' < "$selection"