From 8c8999c08a7033da967c2c677bba7b62dfd737ec Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Thu, 19 Sep 2024 13:03:05 +0200 Subject: [PATCH] [arkdep] Ucode update do not print errors --- arkdep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkdep b/arkdep index 6f6af2d..0bbfd0d 100755 --- a/arkdep +++ b/arkdep @@ -1082,8 +1082,8 @@ deploy () { for file in passwd shadow group; do # Hash old and new file to compare # No need to handle file not exist scenario, we can assume /etc/$file to always exist - declare checksum_old=($(sha256sum $arkdep_dir/overlay/etc/$file)) - declare checksum_current=($(sha256sum /etc/$file)) + declare checksum_old=($(sha256sum $arkdep_dir/overlay/etc/$file 2> /dev/null)) + declare checksum_current=($(sha256sum /etc/$file 2> /dev/null)) if [[ ! ${checksum_old[0]} == ${checksum_current[0]} ]]; then printf "Copying $file\n"