From b315eeb50c0817d80c34a2bed03d8d3e7a1e1e32 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 14 Apr 2022 19:49:37 +0200 Subject: [PATCH] style: add copyright and shellcheck ignores Signed-off-by: Dominik Willner th33xitus@gmail.com --- scripts/globals.sh | 1 + scripts/network_functions.sh | 13 +++++++++++++ scripts/rollback.sh | 13 +++++++++++++ scripts/switch_branch.sh | 13 +++++++++++++ 4 files changed, 40 insertions(+) diff --git a/scripts/globals.sh b/scripts/globals.sh index c551812..85f23ea 100644 --- a/scripts/globals.sh +++ b/scripts/globals.sh @@ -9,6 +9,7 @@ # This file may be distributed under the terms of the GNU GPLv3 license # #=======================================================================# +# shellcheck disable=SC2034 set -e function set_globals(){ diff --git a/scripts/network_functions.sh b/scripts/network_functions.sh index 006c24c..8511673 100755 --- a/scripts/network_functions.sh +++ b/scripts/network_functions.sh @@ -1,3 +1,16 @@ +#!/bin/bash + +#=======================================================================# +# Copyright (C) 2020 - 2022 Dominik Willner # +# # +# This file is part of KIAUH - Klipper Installation And Update Helper # +# https://github.com/th33xitus/kiauh # +# # +# This file may be distributed under the terms of the GNU GPLv3 license # +#=======================================================================# + +set -e + function set_nginx_cfg(){ if [ "${SET_NGINX_CFG}" = "true" ]; then local cfg="${SRCDIR}/kiauh/resources/${1}" diff --git a/scripts/rollback.sh b/scripts/rollback.sh index aaa6d9d..9f236b7 100755 --- a/scripts/rollback.sh +++ b/scripts/rollback.sh @@ -1,3 +1,16 @@ +#!/bin/bash + +#=======================================================================# +# Copyright (C) 2020 - 2022 Dominik Willner # +# # +# This file is part of KIAUH - Klipper Installation And Update Helper # +# https://github.com/th33xitus/kiauh # +# # +# This file may be distributed under the terms of the GNU GPLv3 license # +#=======================================================================# + +set -e + save_klipper_state(){ source_kiauh_ini #read current klipper state diff --git a/scripts/switch_branch.sh b/scripts/switch_branch.sh index 212c436..1773ef5 100755 --- a/scripts/switch_branch.sh +++ b/scripts/switch_branch.sh @@ -1,3 +1,16 @@ +#!/bin/bash + +#=======================================================================# +# Copyright (C) 2020 - 2022 Dominik Willner # +# # +# This file is part of KIAUH - Klipper Installation And Update Helper # +# https://github.com/th33xitus/kiauh # +# # +# This file may be distributed under the terms of the GNU GPLv3 license # +#=======================================================================# + +set -e + switch_to_master(){ cd $KLIPPER_DIR status_msg "Switching...Please wait ..."; echo