mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
CI: Set GOPATH in install-cli-tools.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
4ab35c4dc7
commit
dcd3c5d8a9
1 changed files with 8 additions and 1 deletions
9
scripts/dist/install-go-tools.sh
vendored
9
scripts/dist/install-go-tools.sh
vendored
|
|
@ -11,6 +11,12 @@ if [[ $(id -u) != "0" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v go &> /dev/null
|
||||
then
|
||||
echo "Go must be installed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $PHOTOPRISM_ARCH ]]; then
|
||||
SYSTEM_ARCH=$PHOTOPRISM_ARCH
|
||||
else
|
||||
|
|
@ -18,12 +24,13 @@ else
|
|||
fi
|
||||
|
||||
DESTARCH=${2:-$SYSTEM_ARCH}
|
||||
GOPATH=$(go env GOPATH)
|
||||
|
||||
echo "Installing Go Tools for ${DESTARCH^^}..."
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p "$GOPATH/src" "$GOBIN"
|
||||
mkdir -p "$GOPATH/src"
|
||||
|
||||
# Install gosu in "/usr/local/sbin".
|
||||
echo "Installing gosu in /usr/local/sbin..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue