mirror of
https://github.com/namibia/demo-sync.git
synced 2024-11-22 03:25:09 +00:00
trying to fix the pause
This commit is contained in:
parent
5a7817e66d
commit
5103b384f8
15
setip.sh
15
setip.sh
@ -1,13 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
set -e
|
|
||||||
|
|
||||||
# Check for CI
|
|
||||||
if [ "$CI" = "true" ] ; then
|
|
||||||
BRANCH=$CIRCLE_SHA1
|
|
||||||
echo "Testing commit: $BRANCH"
|
|
||||||
else
|
|
||||||
BRANCH="master"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# simple basic random
|
# simple basic random
|
||||||
function getKey () {
|
function getKey () {
|
||||||
@ -69,8 +60,8 @@ serverKey=$(<"$VDMHOME/ip.key")
|
|||||||
accessToke=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
accessToke=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
||||||
|
|
||||||
if [[ "$accessToke" != "$TRUE" ]]; then
|
if [[ "$accessToke" != "$TRUE" ]]; then
|
||||||
read -s -p "Please enter your VDM access key: " vdmAccessKey continue
|
read -s -p "Please enter your VDM access key: " vdmAccessKey
|
||||||
echo
|
echo ""
|
||||||
echo -n "One moment while we set your access to the VDM system..."
|
echo -n "One moment while we set your access to the VDM system..."
|
||||||
resultAccess=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "trust=$vdmAccessKey" --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
resultAccess=$(curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" --silent --data-urlencode "trust=$vdmAccessKey" --data-urlencode "key=$serverKey" $VDMIPSERVER)
|
||||||
if [[ "$resultAccess" != "$TRUE" ]]; then
|
if [[ "$resultAccess" != "$TRUE" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user