44 lines
933 B
Text
44 lines
933 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Script menu
|
||
|
source bashelper_header
|
||
|
|
||
|
#Bash3lper="$(cd "$(dirname "$0")" && pwd)"
|
||
|
Bscripts="$Bash3lper"
|
||
|
|
||
|
|
||
|
show_list_script (){
|
||
|
clear
|
||
|
write_header
|
||
|
write_header " S C R I P T - L I S T "
|
||
|
|
||
|
echo -e "\n"
|
||
|
#PS3=$'\n :: Use $YELLOW 'Number'${NOC} to select a Script or$YELLOW '0'${NOC} to$YELLOW Exit ${NOC}: '
|
||
|
|
||
|
PS3="
|
||
|
Use ' ${GREEN}Number${NOC}' to select ${GREEN}Your choice${NOC} or '${YELLOW}0${NOC}' to ${YELLOW}Return ${NOC}: "
|
||
|
|
||
|
#options=(" List script" " Edit script (nano)" " Update list script")
|
||
|
options=(" List script" " Edit script (nano)")
|
||
|
select opt in "${options[@]}"
|
||
|
do
|
||
|
case $opt in
|
||
|
" List script")
|
||
|
clear;
|
||
|
$Bscripts/list-script.sh
|
||
|
;;
|
||
|
" Edit script")
|
||
|
clear;
|
||
|
edit_script
|
||
|
;;
|
||
|
" Update script")
|
||
|
list-script.sh
|
||
|
;;
|
||
|
*) clear ; break
|
||
|
unset REPLY ;;
|
||
|
esac
|
||
|
done
|
||
|
}
|
||
|
|
||
|
show_list_script
|