Skip to content

Commit

Permalink
add a few extra checks to sync script
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Jun 29, 2017
1 parent 813b51e commit e0603e1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/syncFilesToAllSwarmNodes.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
#!/bin/bash

#ensure dig is avail
command -v dig >/dev/null 2>&1 || { echo >&2 "ERROR: dig is required, but doesn't appear to be installed. Aborting..."; exit 1; }

#ensure sed is avail
command -v sed >/dev/null 2>&1 || { echo >&2 "ERROR: sed is required, but doesn't appear to be installed. Aborting..."; exit 1; }

#ensure awk is avail
command -v awk >/dev/null 2>&1 || { echo >&2 "ERROR: awk is required, but doesn't appear to be installed. Aborting..."; exit 1; }

#ensure scp is avail
command -v scp >/dev/null 2>&1 || { echo >&2 "ERROR: scp is required, but doesn't appear to be installed. Aborting..."; exit 1; }

#ensure realpath is avail
command -v realpath >/dev/null 2>&1 || { echo >&2 "ERROR: realpath is required, but doesn't appear to be installed. Aborting..."; exit 1; }


IDfile=`realpath $4`


Expand Down

0 comments on commit e0603e1

Please sign in to comment.