mirror of
https://github.com/flynx/post-install.git
synced 2025-10-29 10:40:09 +00:00
now listing scripts...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
52be8087f3
commit
42cb321466
14
post-install
14
post-install
@ -414,7 +414,6 @@ function @setupList(){
|
||||
}
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# config...
|
||||
|
||||
@ -429,6 +428,15 @@ function @setupList(){
|
||||
#----------------------------------------------------------------------
|
||||
# help and arguments...
|
||||
|
||||
function listScripts(){
|
||||
[ -d "$SCRIPT_DIR" ] \
|
||||
&& echo "-" \
|
||||
&& return 0
|
||||
|
||||
local scripts=( $(ls "$SCRIPT_DIR") )
|
||||
echo ${scripts/README}
|
||||
}
|
||||
|
||||
function printhelp(){ cat << EOF
|
||||
Usage: $CMD [OPTIONS]
|
||||
|
||||
@ -455,6 +463,9 @@ Default features:
|
||||
Supported features:
|
||||
${ALL_FEATURES[@]}
|
||||
|
||||
Available scripts:
|
||||
$( listScripts )
|
||||
|
||||
|
||||
Examples:
|
||||
Only create dirs and links (features dir and user-link)...
|
||||
@ -480,6 +491,7 @@ while ! [ -z "$1" ] ; do
|
||||
QUIET=1
|
||||
shift
|
||||
;;
|
||||
# XXX introspection...
|
||||
|
||||
-s|--source)
|
||||
[ -z "$2" ] \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user