Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Check required commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ruescar committed Jul 9, 2020
1 parent 838c520 commit 6e5cbab
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
20 changes: 20 additions & 0 deletions selenium/automate_chrome.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash

set -e

require_command(){
cmd_name=$1
if [ -z $(command -v $1) ]; then
echo "$1 command required for this script to run"
exit 1
fi
}

require_command "awk"
require_command "cut"
require_command "docker"
require_command "ifconfig"
require_command "sed"
require_command "true"
require_command "unzip"
require_command "uuidgen"
require_command "wget"

input=$1
driver_version=$2
tag=$3
Expand Down
20 changes: 20 additions & 0 deletions selenium/automate_firefox.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash
set -e

require_command(){
cmd_name=$1
if [ -z $(command -v $1) ]; then
echo "$1 command required for this script to run"
exit 1
fi
}

require_command "awk"
require_command "cut"
require_command "docker"
require_command "ifconfig"
require_command "jq"
require_command "sed"
require_command "tar"
require_command "true"
require_command "uuidgen"
require_command "wget"

input=$1
server_version=$2
tag=$3
Expand Down
20 changes: 20 additions & 0 deletions selenium/automate_opera.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash
set -e

require_command(){
cmd_name=$1
if [ -z $(command -v $1) ]; then
echo "$1 command required for this script to run"
exit 1
fi
}

require_command "awk"
require_command "cut"
require_command "docker"
require_command "ifconfig"
require_command "jq"
require_command "sed"
require_command "true"
require_command "unzip"
require_command "uuidgen"
require_command "wget"

input=$1
driver_version=$2
tag=$3
Expand Down
20 changes: 20 additions & 0 deletions selenium/automate_yandex.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash
set -e

require_command(){
cmd_name=$1
if [ -z $(command -v $1) ]; then
echo "$1 command required for this script to run"
exit 1
fi
}

require_command "awk"
require_command "cut"
require_command "docker"
require_command "ifconfig"
require_command "jq"
require_command "sed"
require_command "true"
require_command "unzip"
require_command "uuidgen"
require_command "wget"

input=$1
driver_version=$2
tag=$3
Expand Down

0 comments on commit 6e5cbab

Please sign in to comment.