Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Sep 25, 2023
1 parent 09289dd commit 7383bba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 6 additions & 2 deletions tests/bats/functional_core_commands.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ setup() {
load 'test_helper/bats-support/load'
load 'test_helper/bats-assert/load'

if [ -z "$PHP_BIN" ]; then
export PHP_BIN="$(which php)"
declare PHP_BIN
PHP_BIN=$(which php)
if [ $? -ne 0 ]; then
echo "Error: PHP binary not found"
exit 1
fi


if [ -z "$N98_MAGERUN2_BIN" ]; then
echo "ENV variable N98_MAGERUN2_BIN is missing"
exit 1
Expand Down
4 changes: 0 additions & 4 deletions tests/bats/functional_magerun_commands.bats
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ setup() {
exit 1
fi

if [ -z "$PHP_BIN" ]; then
export PHP_BIN="$(which php)"
fi

if [ -z "$N98_MAGERUN2_BIN" ]; then
echo "ENV variable N98_MAGERUN2_BIN is missing"
exit 1
Expand Down

0 comments on commit 7383bba

Please sign in to comment.