Skip to content

Commit f9c031d

Browse files
committedJul 22, 2017
travis: Trying to make the symlink work.
1 parent b61a1fd commit f9c031d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎.travis/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ if [ ! -z "$PREBUILT_DIR" ]; then
343343
LATEST="$(ls ../../archive/master/ | tail -n 1)"
344344
HDMI2USB_FIRMWARE="../../archive/master/$LATEST/$PLATFORM/hdmi2usb/lm32"
345345
echo "Checking for '$HDMI2USB_FIRMWARE'"
346-
if [ -d "$HDMI2USB_FIRMWARE" ]; then
346+
if [ -d "$HDMI2USB_FIRMWARE" -a "$(readlink unstable)" != "$HDMI2USB_FIRMWARE" ]; then
347347
echo "Changing $PLATFORM from '$(readlink unstable)' to '$HDMI2USB_FIRMWARE'"
348-
ln -sf "$HDMI2USB_FIRMWARE" unstable
348+
ln -sfT "$HDMI2USB_FIRMWARE" unstable
349349
git add unstable
350350
git commit -a \
351351
-m "Updating unstable link (Travis build #$TRAVIS_BUILD_NUMBER of $GIT_REVISION for PLATFORM=$PLATFORM TARGET=$TARGET CPU=$CPU)" \

0 commit comments

Comments
 (0)
Please sign in to comment.