Skip to content

Commit

Permalink
deploy_beta.sh: ask for the hostname when variable doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Delaere committed Apr 29, 2019
1 parent 667a273 commit d7f156c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy_beta.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash

./build_linux_static.sh

if [ -z ${RSMODULES_DEPLOY_HOST} ]; then
echo "The variable RSMODULES_DEPLOY_HOST is not found."
echo "Please enter the name of the host you want to deploy to: "
read RSMODULES_DEPLOY_HOST
fi
scp rsmodules root@$RSMODULES_DEPLOY_HOST:/software/shared/apps/x86_64/rsmodules/beta/rsmodules


0 comments on commit d7f156c

Please sign in to comment.