[arkdep] Ucode update do not print errors

This commit is contained in:
Dennis ten Hoove 2024-09-19 13:03:05 +02:00
parent 997e013a97
commit 8c8999c08a
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1

4
arkdep
View file

@ -1082,8 +1082,8 @@ deploy () {
for file in passwd shadow group; do for file in passwd shadow group; do
# Hash old and new file to compare # Hash old and new file to compare
# No need to handle file not exist scenario, we can assume /etc/$file to always exist # 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_old=($(sha256sum $arkdep_dir/overlay/etc/$file 2> /dev/null))
declare checksum_current=($(sha256sum /etc/$file)) declare checksum_current=($(sha256sum /etc/$file 2> /dev/null))
if [[ ! ${checksum_old[0]} == ${checksum_current[0]} ]]; then if [[ ! ${checksum_old[0]} == ${checksum_current[0]} ]]; then
printf "Copying $file\n" printf "Copying $file\n"