summaryrefslogtreecommitdiff
path: root/lf
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2024-11-19 12:47:56 -0600
committerZachIR <zachir@librem.one>2024-11-19 12:47:56 -0600
commit6f57f517e48b6b09ef190c241579cec002cfde3f (patch)
tree26dcb7dff79a8a95eb90ebebae409b8b7f7c92d3 /lf
parentbc4303e0ff999fec14463f9405a7fc7add325477 (diff)
Fix chmod issue with spaces in lf
Chmod would not apply properly to files or folders with spaces in the path; this has been fixed now.
Diffstat (limited to 'lf')
-rw-r--r--lf/lfrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lf/lfrc b/lf/lfrc
index 702fc2d..19c6051 100644
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -51,9 +51,9 @@ cmd chmod ${{
printf "Mode Bits: "
read ans
- for file in "$fx"
+ echo "$fx" | while read file
do
- chmod $ans $file
+ chmod "$ans" "$file"
done
}}