mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
9dae851a9c
* first! * folders * break out colors * home * seperate update * breakout pull * move file * breakout push * breakout smart * restore breakout * include restore * breakout logs validate ssh * breakout config exit intent * source exit * breakout backup automation and purge * breakout root * file headers * create push pull restore smart functions * consolidate options * include root check * includes * includes 2 * automate * rearrange imports * header * ssh rsync * new install steps * ticks * yellow * host check * check for git * ticks * check for pihole * check sudo powers * create sudo file * write output * pihole directory * install sudo file * purge error message * comment cleanup * installer * header * instructions * l * read p * header * skip prompts * sudo no longer in config * compare exit code * exit with change * 3.0 Co-authored-by: Michael Stanclift <vmstan@Sovereign.vmstan.net> Co-authored-by: Michael Stanclift <vmstan@Sovereign.local>
41 lines
903 B
Bash
41 lines
903 B
Bash
# GRAVITY SYNC BY VMSTAN #####################
|
|
# gs-intent.sh ###############################
|
|
|
|
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
|
# This code is called from the main gravity-sync.sh file and should not execute directly!
|
|
|
|
## Validate Intent
|
|
function intent_validate {
|
|
if [ "$VERIFY_PASS" == "0" ]
|
|
then
|
|
PHASER=$((( RANDOM % 4 ) + 1 ))
|
|
if [ "$PHASER" = "1" ]
|
|
then
|
|
INTENT="FIRE PHOTON TORPEDOS"
|
|
elif [ "$PHASER" = "2" ]
|
|
then
|
|
INTENT="FIRE ALL PHASERS"
|
|
elif [ "$PHASER" = "3" ]
|
|
then
|
|
INTENT="EJECT THE WARPCORE"
|
|
elif [ "$PHASER" = "4" ]
|
|
then
|
|
INTENT="ENGAGE TRACTOR BEAM"
|
|
fi
|
|
|
|
MESSAGE="Type ${INTENT} to Confirm"
|
|
echo_need
|
|
|
|
read INPUT_INTENT
|
|
|
|
if [ "${INPUT_INTENT}" != "${INTENT}" ]
|
|
then
|
|
MESSAGE="${TASKTYPE} Aborted"
|
|
echo_info
|
|
exit_nochange
|
|
fi
|
|
else
|
|
MESSAGE="Verification Bypassed"
|
|
echo_warn
|
|
fi
|
|
} |