diff options
author | ache <ache@ache.one> | 2017-07-18 08:08:02 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2017-08-10 04:37:14 +0200 |
commit | 9fe7ed612b3cba938d049e726ecd305849dd19e3 (patch) | |
tree | bf2662a32ef4508d520d8f1282854d629b8e9ec9 | |
parent | Makefile fix for imgs2pdf (diff) |
New Feature : list wallsubdirs
-rwxr-xr-x | autoWall.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/autoWall.sh b/autoWall.sh index 06509bb..8b709ed 100755 --- a/autoWall.sh +++ b/autoWall.sh @@ -11,6 +11,16 @@ do echo ${action:1}/ >> ${wallDir}/listDirWall fi fi + if [ ${action} = "list" ] + then + for d in `ls ${wallDir}` + do + if [ -d "${wallDir}/${d}" ]; then + echo "$d/" + fi + done + echo + fi if [ ${action:0:1} = "-" ] then if [ -d ${wallDir}/${action:1} ] |