CLEANUP: Cleaned blank lines in patcher.sh

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2021-12-18 22:23:29 +01:00
parent 3e2413f73a
commit 15f24e2aec
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -42,7 +42,6 @@ function welcome_msg {
} }
function goodbye_msg { function goodbye_msg {
echo -e "\nInstallation complete.\n\tPlease reboot your machine!" echo -e "\nInstallation complete.\n\tPlease reboot your machine!"
echo -e "I hope you enjoy crowsnest, GoodBye ..." echo -e "I hope you enjoy crowsnest, GoodBye ..."
@ -64,7 +63,6 @@ function cleanup() {
# shellcheck disable=2046 # shellcheck disable=2046
[ -n "$(jobs -pr)" ] && kill $(jobs -pr) && sleep 5 && kill -9 $(jobs -pr) [ -n "$(jobs -pr)" ] && kill $(jobs -pr) && sleep 5 && kill -9 $(jobs -pr)
} }
##
function err_exit { function err_exit {
if [ "${1}" != "0" ]; then if [ "${1}" != "0" ]; then
@ -80,7 +78,6 @@ function err_exit {
### Init ERR Trap ### Init ERR Trap
trap 'err_exit $? $LINENO' ERR trap 'err_exit $? $LINENO' ERR
function stop_webcamd { function stop_webcamd {
if [ "$(sudo systemctl is-active webcamd.service)" = "active" ]; then if [ "$(sudo systemctl is-active webcamd.service)" = "active" ]; then
sudo systemctl stop webcamd sudo systemctl stop webcamd
@ -88,7 +85,7 @@ function stop_webcamd {
} }
function diff_files { function diff_files {
diff -s "${1}" "${2}" diff "${1}" "${2}"
} }
function copy_service { function copy_service {
@ -123,14 +120,6 @@ function daemon_reload {
echo -e "Reload systemd to enable new daemon ... [OK]" echo -e "Reload systemd to enable new daemon ... [OK]"
} }
#### MAIN #### MAIN
install_cleanup_trap install_cleanup_trap
welcome_msg welcome_msg