diff options
author | Ken Moore <moorekou@gmail.com> | 2016-06-30 09:53:05 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-06-30 09:53:05 -0400 |
commit | c1651e696d153428fe94b19e3550f8c3828a9852 (patch) | |
tree | f7be3f91ef3a9ad57f7732a452fc2f2977b93dcf /JsonMenu_Scripts/ls.json.sh | |
parent | Finish up the new JSON recursive menu system as well as the test script for l... (diff) | |
download | lumina-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-x | JsonMenu_Scripts/ls.json.sh | 6 |
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.$$ |