Skip to content

Commit

Permalink
fix: add bin directory to install path
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
  • Loading branch information
nevermarine committed Dec 25, 2024
1 parent d5f3108 commit 2581bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d8-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ installBinary() {
set +e
local output
local rc
output=$(install "$D8_TMP/$OS-$ARCH/d8" "$INSTALL_DIR" 2>&1)
output=$(install "$D8_TMP/$OS-$ARCH/bin/d8" "$INSTALL_DIR" 2>&1)
rc=$?
if [ "$rc" -ne 0 ]; then
if grep -q "Permission denied" <<< "$output"; then
echo "Got Permission denied error. Trying with sudo (you may need to enter sudo password)"
set -e
sudo install "$D8_TMP/$OS-$ARCH/d8" "$INSTALL_DIR"
sudo install "$D8_TMP/$OS-$ARCH/bin/d8" "$INSTALL_DIR"
else
echo "Unexpected error during install: $output"
set -e
Expand Down

0 comments on commit 2581bc3

Please sign in to comment.