mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
add info function
This commit is contained in:
parent
277e7bd07b
commit
470dc3a2da
@ -157,6 +157,9 @@ case $# in
|
||||
sudo)
|
||||
start_gs
|
||||
task_sudo ;;
|
||||
info)
|
||||
start_gs
|
||||
task_info ;;
|
||||
*)
|
||||
start_gs
|
||||
task_invalid ;;
|
||||
|
@ -145,3 +145,12 @@ function task_version {
|
||||
show_version
|
||||
exit_nochange
|
||||
}
|
||||
|
||||
## Info Task
|
||||
|
||||
function task_info() {
|
||||
TASKTYPE='INFO'
|
||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||
|
||||
exit_nochange
|
||||
}
|
Loading…
Reference in New Issue
Block a user