diff options
Diffstat (limited to 'autoWall.sh')
-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} ] |