Polish 'ls' command
This commit is contained in:
parent
1523516650
commit
ae88896748
2 changed files with 17 additions and 0 deletions
17
libexec/webskel/commands/ls
Normal file → Executable file
17
libexec/webskel/commands/ls
Normal file → Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
##
|
||||||
|
# variables
|
||||||
|
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)}
|
||||||
|
sharebase="${localbase}"/share/webskel
|
||||||
|
libexec="${localbase}"/libexec/webskel
|
||||||
|
|
||||||
|
##
|
||||||
|
# main
|
||||||
|
echo "Skeletons "
|
||||||
|
find "${sharebase}" \
|
||||||
|
-type d \
|
||||||
|
-maxdepth 1 \
|
||||||
|
-name *.skeleton \
|
||||||
|
-exec basename {} \;
|
0
libexec/webskel/commands/new
Normal file → Executable file
0
libexec/webskel/commands/new
Normal file → Executable file
Loading…
Reference in a new issue