Skip to content

Commit

Permalink
fix: apply sourcery recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
psyray committed Feb 12, 2025
1 parent 2a15cd7 commit b82f4ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ main() {
INSTALL_TYPE="source"
log "Build has been forced because your user ID is not the same as the pre-built images. If you want to use pre-built images, your current user installing reNgine-ng must be 1000." $COLOR_RED
else
if [ $isNonInteractive = false ]; then
if [ "$isNonInteractive" = false ]; then
log "Do you want to build Docker images from source or use pre-built images (recommended)? \nThis saves significant build time but requires good download speeds for it to complete fast." $COLOR_RED
log "1) From source" $COLOR_YELLOW
log "2) Use pre-built images (default)" $COLOR_YELLOW
Expand All @@ -266,13 +266,13 @@ main() {
INSTALL_TYPE="prebuilt"
;;
esac
elif [ $isNonInteractive = true ]; then
elif [ "$isNonInteractive" = true ]; then
INSTALL_TYPE="${INSTALL_TYPE:-prebuilt}"
fi
fi

# Non-interactive install
if [ $isNonInteractive = true ]; then
if [ "$isNonInteractive" = true ]; then
# Load and verify .env file
if [ -f .env ]; then
export $(grep -v '^#' .env | xargs)
Expand Down

0 comments on commit b82f4ec

Please sign in to comment.