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:
@@ -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"
|
||||||
|
Submodule submodules/moodle-test-userscript updated: 8e91b93d29...9453aa8b97
Reference in New Issue
Block a user