mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Fix macOS nightly preupload check
Previously, it was always ls'ing home directory.
This commit is contained in:
parent
5508153d52
commit
c89876538d
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ DATE=$(date +'%d%m%Y')
|
||||||
SHORT_COMMIT=$(git rev-parse --short "${TRAVIS_COMMIT}")
|
SHORT_COMMIT=$(git rev-parse --short "${TRAVIS_COMMIT}")
|
||||||
TARGET_FILENAME="OpenMW-${DATE}-${SHORT_COMMIT}.dmg"
|
TARGET_FILENAME="OpenMW-${DATE}-${SHORT_COMMIT}.dmg"
|
||||||
|
|
||||||
if ! ssh -p "$OSX_DEPLOY_PORT" -i "$SSH_KEY_PATH" "$OSX_DEPLOY_HOST" sh -c "ls \"$REMOTE_PATH\"" | grep "$SHORT_COMMIT" > /dev/null; then
|
if ! ssh -p "$OSX_DEPLOY_PORT" -i "$SSH_KEY_PATH" "$OSX_DEPLOY_HOST" "ls \"$REMOTE_PATH\"" | grep "$SHORT_COMMIT" > /dev/null; then
|
||||||
scp -P "$OSX_DEPLOY_PORT" -i "$SSH_KEY_PATH" ./*.dmg "$OSX_DEPLOY_HOST:$REMOTE_PATH/$TARGET_FILENAME"
|
scp -P "$OSX_DEPLOY_PORT" -i "$SSH_KEY_PATH" ./*.dmg "$OSX_DEPLOY_HOST:$REMOTE_PATH/$TARGET_FILENAME"
|
||||||
else
|
else
|
||||||
echo "An existing nightly build for commit ${SHORT_COMMIT} has been found, skipping upload."
|
echo "An existing nightly build for commit ${SHORT_COMMIT} has been found, skipping upload."
|
||||||
|
|
Loading…
Reference in a new issue