Polish 'ls' command

This commit is contained in:
0x1eef 2024-09-22 18:16:06 -03:00
parent 1523516650
commit ae88896748
2 changed files with 17 additions and 0 deletions

17
libexec/webskel/commands/ls Normal file → Executable file
View 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
View file