summaryrefslogtreecommitdiff
path: root/contrib/deck.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/deck.sh')
-rwxr-xr-xcontrib/deck.sh16
1 files changed, 8 insertions, 8 deletions
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"