aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-07-18 08:08:02 +0200
committerache <ache@ache.one>2017-08-10 04:37:14 +0200
commit9fe7ed612b3cba938d049e726ecd305849dd19e3 (patch)
treebf2662a32ef4508d520d8f1282854d629b8e9ec9
parentMakefile fix for imgs2pdf (diff)
New Feature : list wallsubdirs
-rwxr-xr-xautoWall.sh10
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} ]