aboutsummaryrefslogtreecommitdiff
path: root/JsonMenu_Scripts/ls.json.sh
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-30 09:53:05 -0400
committerKen Moore <moorekou@gmail.com>2016-06-30 09:53:05 -0400
commitc1651e696d153428fe94b19e3550f8c3828a9852 (patch)
treef7be3f91ef3a9ad57f7732a452fc2f2977b93dcf /JsonMenu_Scripts/ls.json.sh
parentFinish up the new JSON recursive menu system as well as the test script for l... (diff)
downloadlumina-c1651e696d153428fe94b19e3550f8c3828a9852.tar.gz
lumina-c1651e696d153428fe94b19e3550f8c3828a9852.tar.bz2
lumina-c1651e696d153428fe94b19e3550f8c3828a9852.zip
Fix some whitespace issues with the ls.json.sh script.
Diffstat (limited to 'JsonMenu_Scripts/ls.json.sh')
-rwxr-xr-xJsonMenu_Scripts/ls.json.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/JsonMenu_Scripts/ls.json.sh b/JsonMenu_Scripts/ls.json.sh
index 5b4680ed..626912cb 100755
--- a/JsonMenu_Scripts/ls.json.sh
+++ b/JsonMenu_Scripts/ls.json.sh
@@ -4,16 +4,16 @@ if [ "$1" == "" ] ; then
DIR=`pwd`
fi
-ls ${DIR} > /tmp/.tmp.lines.$$
+ls "${DIR}" > /tmp/.tmp.lines.$$
while read name
do
if [ -n "${OUT}" ] ; then
OUT="${OUT},"
fi
if [ -d "${DIR}/${name}" ] ; then
- OUT="${OUT} \"${name}\" : { \"type\" : \"jsonmenu\", \"exec\" : \"${0} ${DIR}/${name}\", \"icon\":\"folder\"}"
+ OUT="${OUT} \"${name}\" : { \"type\" : \"jsonmenu\", \"exec\" : \"${0} \\\"${DIR}/${name}\\\"\", \"icon\":\"folder\"}"
else
- OUT="${OUT} \"${name}\" : { \"type\" : \"item\", \"icon\":\"unknown\", \"action\" : \"xdg-open ${DIR}/${name}\"}"
+ OUT="${OUT} \"${name}\" : { \"type\" : \"item\", \"icon\":\"unknown\", \"action\" : \"xdg-open \\\"${DIR}/${name}\\\"\"}"
fi
done < /tmp/.tmp.lines.$$
rm /tmp/.tmp.lines.$$
bgstack15