Skip to content

Commit

Permalink
do not fail on unsuccessfull npm install
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi committed Feb 28, 2024
1 parent 7af349b commit 66f9ab1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions functions/nodejs-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ nodejs_setup() {
else
if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" nodejs; then echo "OK"; else echo "FAILED"; return 1; fi
fi
#if [[ "$myDistro" == "bookworm" ]]; then jsscripting_npm_install; fi
if [[ "$myDistro" == "bookworm" ]]; then jsscripting_npm_install; fi
if ! command -v npm &> /dev/null; then
echo -n "$(timestamp) [openHABian] Installing npm ... "
if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" npm; then echo "OK"; else echo "FAILED (install npm)"; return 1; fi
#if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" npm; then echo "OK"; else echo "FAILED (install npm)"; return 1; fi
if cond_redirect apt-get install --yes -o DPkg::Lock::Timeout="$APTTIMEOUT" npm; then echo "OK"; else echo "FAILED (install npm)"; fi
fi
fi
}
Expand Down

0 comments on commit 66f9ab1

Please sign in to comment.