From f82848071540ed55173f697054766d38554d5d29 Mon Sep 17 00:00:00 2001 From: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> Date: Mon, 6 Jun 2022 13:16:44 -0700 Subject: Clarified password is for deck user --- contrib/deck.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'contrib/deck.sh') diff --git a/contrib/deck.sh b/contrib/deck.sh index 7415c59b..ea27e310 100755 --- a/contrib/deck.sh +++ b/contrib/deck.sh @@ -80,14 +80,6 @@ checksshport() { fi } -checkpassword() { - ### check to make sure a password was specified - if [[ "$1" == "" ]] || ! [[ "$1" =~ ^[[:alnum:]]+$ ]]; then - printf "Password was not provided, exiting.\n" - exit 1 - fi -} - checksshkey() { ### check if ssh key is present at location provided if [[ "$1" == "" ]]; then @@ -102,6 +94,14 @@ checksshkey() { fi } +checkpassword() { + ### check to make sure a password for 'deck' was specified + if [[ "$1" == "" ]] || ! [[ "$1" =~ ^[[:alnum:]]+$ ]]; then + printf "Remote deck user password was not provided, exiting.\n" + exit 1 + fi +} + clonefromto() { # printf "repo=$1\n" # printf "outdir=$2\n" -- cgit v1.2.3