From 240d5457efbb6e95796c3c672fdf115e5ab2d3a0 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Fri, 5 Aug 2022 10:40:29 +0200 Subject: [PATCH] mkbuild.sh -shellcheck script --- mkbuild.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mkbuild.sh b/mkbuild.sh index 1366e92..7895782 100755 --- a/mkbuild.sh +++ b/mkbuild.sh @@ -1,12 +1,12 @@ #!/usr/local/bin/bash -italic="\033[3m" -underline="\033[4m" -ita_under="\033[3;4m" -bgd="\033[1;4;31m" +#italic="\033[3m" +#underline="\033[4m" +#ita_under="\033[3;4m" +#bgd="\033[1;4;31m" red="\033[1;31m" bold="\033[1m" -box="\033[1;41m" +#box="\033[1;41m" reset="\033[0m" if [ "$1" == "-h" ]; then @@ -65,7 +65,7 @@ notification() { #path_img=`dirname "$0"` path_img=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) - if [ $3 -eq 0 ]; + if [ "$3" -eq 0 ]; then sound="Glass" message="Envoi terminé sur $2 !" @@ -80,14 +80,13 @@ notification() { if [[ "$OSTYPE" == "linux-gnu" ]] && [ -x "$(command -v zenity)" ]; then zenity --title="$1" --notification --text="$message" elif [[ "$OSTYPE" == "darwin"* ]] && [ -x "$(command -v terminal-notifier)" ]; then - #terminal-notifier -title "$1" -message "$message" -sound "$sound" -contentImage "$image" - terminal-notifier -title "$1" -message "$message" -sound "$sound" -appIcon "$image" + terminal-notifier -title "$1" -message "$message" -sound "$sound" -contentImage "$image" + #terminal-notifier -title "$1" -message "$message" -sound "$sound" -appIcon "$image" fi - } -cd $project_dir || exit -#mkdocs build --clean +cd "$project_dir" || exit +mkdocs build --clean : <<'END_COMMENT' if [[ "$device" == "airbook" ]]; then