Skip to content

Commit

Permalink
Update installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniils Petrovs committed Aug 24, 2022
1 parent ddc016a commit 1840485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ PWD=$(pwd)

echo "Installing ATOSS CLI..."

LOCAL_JAR_FILE=$PWD/target/uberjar/atoss-cli-standalone.jar
LOCAL_JAR_FILE=$PWD/target/default+uberjar/atoss-cli-standalone.jar
INSTALL_DIR=/usr/local/bin/

if [ -f "$LOCAL_JAR_FILE" ]; then
echo "Local uberjar exists, skipping pull from remote."
cp -f $PWD/target/uberjar/atoss-cli-standalone.jar $INSTALL_DIR
cp -f "$LOCAL_JAR_FILE" "$INSTALL_DIR"
else
echo "$LOCAL_JAR_FILE does not exist, pulling release from Github."

Expand Down

0 comments on commit 1840485

Please sign in to comment.