Skip to content

Commit 2e7eb9a

Browse files
committed
[JIRA DEVA11Y-128] Corrected shell script bugs
1 parent e0615a6 commit 2e7eb9a

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

scripts/bash/cli.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ if [[ $SUBCOMMAND == "register-pre-commit-hook" ]]; then
9898
exit 0
9999
fi
100100

101+
download_binary
101102
a11y_scan

scripts/fish/cli.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# Shell specific
44
fish_bin=$(command -v fish)
5-
BROWSERSTACK_USERNAME=$($fish_bin -c 'echo $BROWSERSTACK_USERNAME')
6-
BROWSERSTACK_ACCESS_KEY=$($fish_bin -c 'echo $BROWSERSTACK_ACCESS_KEY')
5+
export BROWSERSTACK_USERNAME=$($fish_bin -lic 'echo $BROWSERSTACK_USERNAME')
6+
export BROWSERSTACK_ACCESS_KEY=$($fish_bin -lic 'echo $BROWSERSTACK_ACCESS_KEY')
77

88
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
99
SCRIPT_PATH=$(realpath --relative-to="$GIT_ROOT" "$0" 2>/dev/null || realpath "$0")
@@ -103,5 +103,6 @@ if [[ $SUBCOMMAND == "register-pre-commit-hook" ]]; then
103103
exit 0
104104
fi
105105

106+
download_binary
106107
a11y_scan
107108

scripts/fish/spm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# Shell specific
44
fish_bin=$(command -v fish)
5-
BROWSERSTACK_USERNAME=$($fish_bin -c 'echo $BROWSERSTACK_USERNAME')
6-
BROWSERSTACK_ACCESS_KEY=$($fish_bin -c 'echo $BROWSERSTACK_ACCESS_KEY')
5+
export BROWSERSTACK_USERNAME=$($fish_bin -lic 'echo $BROWSERSTACK_USERNAME')
6+
export BROWSERSTACK_ACCESS_KEY=$($fish_bin -lic 'echo $BROWSERSTACK_ACCESS_KEY')
77

88
# Don't change anything after this, same as the bash equivalent
99
[ -f "${PWD}/Package.swift" ]

scripts/zsh/cli.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# Shell specific
44
zsh_bin=$(command -v zsh)
5-
BROWSERSTACK_USERNAME=$($zsh_bin -c 'echo $BROWSERSTACK_USERNAME')
6-
BROWSERSTACK_ACCESS_KEY=$($zsh_bin -c 'echo $BROWSERSTACK_ACCESS_KEY')
5+
export BROWSERSTACK_USERNAME=$($zsh_bin -lic 'echo $BROWSERSTACK_USERNAME')
6+
export BROWSERSTACK_ACCESS_KEY=$($zsh_bin -lic 'echo $BROWSERSTACK_ACCESS_KEY')
77

88
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
99
SCRIPT_PATH=$(realpath --relative-to="$GIT_ROOT" "$0" 2>/dev/null || realpath "$0")
@@ -103,6 +103,7 @@ if [[ $SUBCOMMAND == "register-pre-commit-hook" ]]; then
103103
exit 0
104104
fi
105105

106+
download_binary
106107
a11y_scan
107108

108109

0 commit comments

Comments
 (0)