Skip to content

Commit

Permalink
Add --fast flag to install script
Browse files Browse the repository at this point in the history
  • Loading branch information
imclerran committed Jun 5, 2024
1 parent 1f22f02 commit 796949f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/install
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ RESET="\033[0m"
# Check if $LOCAL_BIN exists and create it if it does not
[ ! -d "$LOCAL_BIN" ] && mkdir -p "$LOCAL_BIN"

# Parse arguments
OPTIMIZE="--optimize"
if [ "$1" = "-f" ] || [ "$1" = "--fast" ] || [ "$1" = "--no-optimize" ]; then
OPTIMIZE=""
fi

# Notify user that roc-start build process is starting
echo -e "Building ${MAGENTA}roc-start${RESET}...\n"
roc build --output roc-start --optimize > /dev/null 2>&1
roc build --output roc-start $OPTIMIZE > /dev/null 2>&1

# If build succeeds, copy the executable to $LOCAL_BIN and notify user
if [ $? -eq 0 ]; then
Expand Down

0 comments on commit 796949f

Please sign in to comment.