From 9eb9ee767cb60a1175ac7b76232dbd0ee0d2aceb Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 1 Mar 2022 18:16:50 +0100 Subject: [PATCH] CI: Improve build scripts #2076 --- scripts/build.sh | 2 +- scripts/dist/install-tensorflow.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index ae405faa6..9e89a16b8 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -13,7 +13,7 @@ BUILD_DATE=$(date -u +%y%m%d) BUILD_VERSION=$(git describe --always) BUILD_TAG=${BUILD_DATE}-${BUILD_VERSION} BUILD_ID=${BUILD_TAG}-${BUILD_OS}-${BUILD_ARCH^^} -BUILD_NAME=$(realpath "${2:-photoprism}") +BUILD_NAME=${2:-photoprism} GO_BIN=${GO_BIN:-/usr/local/go/bin/go} GO_VER=$($GO_BIN version) diff --git a/scripts/dist/install-tensorflow.sh b/scripts/dist/install-tensorflow.sh index c130cdc75..66319cbab 100755 --- a/scripts/dist/install-tensorflow.sh +++ b/scripts/dist/install-tensorflow.sh @@ -43,7 +43,7 @@ if [ ! -f "$TMPDIR/$INSTALL_FILE" ]; then curl --create-dirs -fsSL -o "$TMPDIR/$INSTALL_FILE" "$URL" fi -echo "Extracting \"$TMPDIR/$INSTALL_FILE\" to \"$DESTDIR\"..." +echo "Extracting \"$TMPDIR/$INSTALL_FILE\" to \"$DESTDIR\"." if [ -f "$TMPDIR/$INSTALL_FILE" ]; then tar --overwrite --mode=755 -C "$DESTDIR" -xzf "$TMPDIR/$INSTALL_FILE" @@ -53,7 +53,7 @@ else fi if [[ $DESTDIR == "/usr" || $DESTDIR == "/usr/local" ]]; then - echo "Running ldconfig..." + echo "Running \"ldconfig\"." ldconfig else echo "Running \"ldconfig -n $DESTDIR/lib\"."