mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
fixed printf-s
This commit is contained in:
parent
08be919c9f
commit
1011c30549
3 changed files with 4 additions and 4 deletions
|
@ -5,9 +5,9 @@ domainPath="./data/domain"
|
||||||
|
|
||||||
hr() { [ -t 0 ] && printf '\033[0;32m%*s\033[0m\n' "$(tput cols)" '' | tr ' ' '='; }
|
hr() { [ -t 0 ] && printf '\033[0;32m%*s\033[0m\n' "$(tput cols)" '' | tr ' ' '='; }
|
||||||
|
|
||||||
log() { hr; printf "\033[0;34m%s\033[0m" "${1}"; hr; }
|
log() { hr; printf "\033[0;34m%s\033[0m\n" "${1}"; hr; }
|
||||||
|
|
||||||
error() { printf "\033[0;41m%s\033[0m" "${1}"; }
|
error() { printf "\033[0;41m%s\033[0m\n" "${1}"; }
|
||||||
|
|
||||||
checkFile() {
|
checkFile() {
|
||||||
if [ ! -f "${1}" ]; then
|
if [ ! -f "${1}" ]; then
|
||||||
|
|
|
@ -5,7 +5,7 @@ gitmoduleFile=".gitmodules"
|
||||||
sshGitmodulesFile=".gitmodules.ssh"
|
sshGitmodulesFile=".gitmodules.ssh"
|
||||||
httpsGitmodulesFile=".gitmodules.https"
|
httpsGitmodulesFile=".gitmodules.https"
|
||||||
|
|
||||||
error() { printf "\033[0;41m%s\033[0m" "${1}"; exit 1; }
|
error() { printf "\033[0;41m%s\033[0m\n" "${1}"; exit 1; }
|
||||||
|
|
||||||
if [ ! -d "${gitDir}" ]; then
|
if [ ! -d "${gitDir}" ]; then
|
||||||
error "${gitDir} does not exist! Maybe you ran this script in the wrong directory"
|
error "${gitDir} does not exist! Maybe you ran this script in the wrong directory"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8e91b93d298f0bfcd8b3ace9cd35ab0565109491
|
Subproject commit 9453aa8b978f944df1ae28eeaf28120b91965c1f
|
Loading…
Add table
Add a link
Reference in a new issue