From 9fe7ed612b3cba938d049e726ecd305849dd19e3 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 18 Jul 2017 08:08:02 +0200 Subject: New Feature : list wallsubdirs --- autoWall.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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} ] -- cgit v1.2.3