Skip to content

Commit

Permalink
use the php version in the md name
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Oct 25, 2023
1 parent 319ed96 commit 33a2484
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
set -e

TERMINUS_PLUGINS_DIR=.. terminus list -n remote
PHP_VERSION=$(echo "$PHP_VERSION" | tr -d '.')
FS_TEST="fs-${BUILD_NUM}-${PHP_VERSION}"

# Update Terminus to the latest version.
terminus self:update

# Set the fs-test number. If the build number is > 999, we need to trim the -test- out of the middle.
if [ "$BUILD_NUM" -gt 999 ]; then
FS_TEST="fs-${BUILD_NUM}"
else
FS_TEST="fs-test-${BUILD_NUM}"
fi

echo "Logging in with a machine token:"
terminus auth:login -n --machine-token="$TERMINUS_TOKEN"
terminus whoami
Expand Down

0 comments on commit 33a2484

Please sign in to comment.