Clarified password is for deck user

This commit is contained in:
TrainDoctor
2022-06-06 13:16:44 -07:00
committed by GitHub
parent ed1a9222b4
commit f828480715
+8 -8
View File
@@ -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"