mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
2.1.7 (#70)
* import config file before executing * show_target function * git Co-authored-by: Michael Stanclift <vmstan@MS-MacBook.vmstan.net>
This commit is contained in:
parent
a91c27b6b3
commit
fb2ae38723
@ -41,6 +41,10 @@ Skipping a few digits because what does it really matter?
|
|||||||
|
|
||||||
(Thanks to [@fbourqui](https://github.com/fbourqui) for this contributions to this release.)
|
(Thanks to [@fbourqui](https://github.com/fbourqui) for this contributions to this release.)
|
||||||
|
|
||||||
|
#### 2.1.7
|
||||||
|
- Adjusts placement of configuration import to fully implement `ROOT_CHECK_AVOID` variable.
|
||||||
|
- Someday I'll understand all these git error messages.
|
||||||
|
|
||||||
## 2.0
|
## 2.0
|
||||||
### The Smart Release
|
### The Smart Release
|
||||||
|
|
||||||
|
@ -86,10 +86,10 @@ function import_gs {
|
|||||||
source $HOME/${LOCAL_FOLDR}/${CONFIG_FILE}
|
source $HOME/${LOCAL_FOLDR}/${CONFIG_FILE}
|
||||||
error_validate
|
error_validate
|
||||||
|
|
||||||
MESSAGE="Targeting ${REMOTE_USER}@${REMOTE_HOST}"
|
# MESSAGE="Targeting ${REMOTE_USER}@${REMOTE_HOST}"
|
||||||
echo_info
|
# echo_info
|
||||||
|
|
||||||
detect_ssh
|
# detect_ssh
|
||||||
else
|
else
|
||||||
echo_fail
|
echo_fail
|
||||||
|
|
||||||
@ -101,6 +101,13 @@ function import_gs {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function show_target {
|
||||||
|
MESSAGE="Targeting ${REMOTE_USER}@${REMOTE_HOST}"
|
||||||
|
echo_info
|
||||||
|
|
||||||
|
detect_ssh
|
||||||
|
}
|
||||||
|
|
||||||
# GS Update Functions
|
# GS Update Functions
|
||||||
## Master Branch
|
## Master Branch
|
||||||
function update_gs {
|
function update_gs {
|
||||||
@ -771,7 +778,7 @@ function logs_export {
|
|||||||
|
|
||||||
### Output Sync Logs
|
### Output Sync Logs
|
||||||
function logs_gs {
|
function logs_gs {
|
||||||
import_gs
|
# import_gs
|
||||||
|
|
||||||
MESSAGE="Tailing ${LOG_PATH}/${SYNCING_LOG}"
|
MESSAGE="Tailing ${LOG_PATH}/${SYNCING_LOG}"
|
||||||
echo_info
|
echo_info
|
||||||
@ -795,7 +802,7 @@ function logs_gs {
|
|||||||
## Crontab Logs
|
## Crontab Logs
|
||||||
### Core Crontab Logs
|
### Core Crontab Logs
|
||||||
function show_crontab {
|
function show_crontab {
|
||||||
import_gs
|
# import_gs
|
||||||
|
|
||||||
MESSAGE="Replaying Last Cronjob"
|
MESSAGE="Replaying Last Cronjob"
|
||||||
echo_stat
|
echo_stat
|
||||||
@ -1611,7 +1618,7 @@ function task_automate {
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
|
||||||
CRON_EXIST='0'
|
CRON_EXIST='0'
|
||||||
CRON_CHECK=$(crontab -l | grep -q "${GS_FILENAME}" && echo '1' || echo '0')
|
CRON_CHECK=$(crontab -l | grep -q "${GS_FILENAME}" && echo '1' || echo '0')
|
||||||
@ -1832,8 +1839,8 @@ function task_compare {
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
show_target
|
||||||
validate_gs_folders
|
validate_gs_folders
|
||||||
validate_ph_folders
|
validate_ph_folders
|
||||||
validate_os_sshpass
|
validate_os_sshpass
|
||||||
@ -1980,6 +1987,8 @@ function root_check {
|
|||||||
MESSAGE="${PROGRAM} ${VERSION} Executing"
|
MESSAGE="${PROGRAM} ${VERSION} Executing"
|
||||||
echo_info
|
echo_info
|
||||||
|
|
||||||
|
import_gs
|
||||||
|
|
||||||
MESSAGE="Evaluating Arguments"
|
MESSAGE="Evaluating Arguments"
|
||||||
echo_stat
|
echo_stat
|
||||||
|
|
||||||
@ -1995,7 +2004,8 @@ case $# in
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
show_target
|
||||||
validate_gs_folders
|
validate_gs_folders
|
||||||
validate_ph_folders
|
validate_ph_folders
|
||||||
validate_os_sshpass
|
validate_os_sshpass
|
||||||
@ -2011,7 +2021,8 @@ case $# in
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
show_target
|
||||||
validate_gs_folders
|
validate_gs_folders
|
||||||
validate_ph_folders
|
validate_ph_folders
|
||||||
validate_os_sshpass
|
validate_os_sshpass
|
||||||
@ -2025,7 +2036,8 @@ case $# in
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
show_target
|
||||||
validate_gs_folders
|
validate_gs_folders
|
||||||
validate_ph_folders
|
validate_ph_folders
|
||||||
validate_os_sshpass
|
validate_os_sshpass
|
||||||
@ -2039,7 +2051,8 @@ case $# in
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
show_target
|
||||||
validate_gs_folders
|
validate_gs_folders
|
||||||
validate_ph_folders
|
validate_ph_folders
|
||||||
validate_os_sshpass
|
validate_os_sshpass
|
||||||
@ -2053,7 +2066,8 @@ case $# in
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
show_target
|
||||||
validate_gs_folders
|
validate_gs_folders
|
||||||
validate_ph_folders
|
validate_ph_folders
|
||||||
validate_os_sshpass
|
validate_os_sshpass
|
||||||
@ -2067,7 +2081,8 @@ case $# in
|
|||||||
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
MESSAGE="${MESSAGE}: ${TASKTYPE} Requested"
|
||||||
echo_good
|
echo_good
|
||||||
|
|
||||||
import_gs
|
# import_gs
|
||||||
|
show_target
|
||||||
validate_gs_folders
|
validate_gs_folders
|
||||||
validate_ph_folders
|
validate_ph_folders
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user