add offline option to bundleWeb.sh (#3193)
Co-authored-by: janWilejan <>
This commit is contained in:
parent
3dafc77140
commit
e338da9fa3
@ -5,13 +5,26 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
OFFLINE=0
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
case $1 in
|
||||||
|
--offline)
|
||||||
|
OFFLINE=1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
# Change to the root directory of the repository
|
# Change to the root directory of the repository
|
||||||
cd "$(git rev-parse --show-toplevel)"
|
cd "$(git rev-parse --show-toplevel)"
|
||||||
|
|
||||||
cd web
|
cd web
|
||||||
|
|
||||||
echo "Installing npm modules for the owncast web..."
|
if [ ! "$OFFLINE" ]
|
||||||
npm --silent install 2>/dev/null
|
then
|
||||||
|
echo "Installing npm modules for the owncast web..."
|
||||||
|
npm --silent install 2>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Building owncast web..."
|
echo "Building owncast web..."
|
||||||
rm -rf .next
|
rm -rf .next
|
||||||
|
Loading…
x
Reference in New Issue
Block a user