From 9946b371777f36d57306da4503a8d73776595a7a Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 15 Dec 2020 22:51:25 +0530 Subject: [PATCH] Fix togglex: handle filenames with spaces --- plugins/togglex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/togglex b/plugins/togglex index e2a23f41..d65e00f2 100755 --- a/plugins/togglex +++ b/plugins/togglex @@ -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"