refactor: add local keyword

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-23 14:50:00 +02:00
parent b03df9811c
commit 3570d58f20
6 changed files with 7 additions and 7 deletions

View File

@@ -577,7 +577,7 @@ function change_hostname(){
function set_hostname(){
local new_hostname=${1} current_date
#check for dependencies
dep=(avahi-daemon)
local dep=(avahi-daemon)
dependency_check "${dep[@]}"
#create host file if missing or create backup of existing one with current date&time