mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
changed bash to sh
This commit is contained in:
parent
496ae1c28f
commit
0421353d68
5 changed files with 10 additions and 51 deletions
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
baseDir=$(pwd)
|
||||
domainPath="./data/domain"
|
||||
|
||||
hr() { [ -t 0 ] && printf '\033[0;32m%*s\033[0m\n' "$(tput cols)" '' | tr ' ' '='; }
|
||||
|
||||
log() { hr; echo -e "\033[0;34m${1}\033[0m"; hr; }
|
||||
log() { hr; printf "\033[0;34m%s\033[0m" "${1}"; hr; }
|
||||
|
||||
error() { echo -e "\033[0;41m${1}\033[0m"; }
|
||||
error() { printf "\033[0;41m%s\033[0m" "${1}"; }
|
||||
|
||||
checkFile() {
|
||||
if [ ! -f "${1}" ]; then
|
||||
|
@ -22,7 +22,7 @@ makeNextSubmodule() {
|
|||
npm install
|
||||
npm audit fix > /dev/null 2> /dev/null
|
||||
checkFile "make.sh"
|
||||
./make.sh || exit 1
|
||||
npm run export || exit 1
|
||||
npx --yes next telemetry disable
|
||||
cd "${baseDir}" || exit 1
|
||||
# TODO: check if link exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue