Refrain from using bashisms in scripts that have a #!/bin/sh hashbang

This commit is contained in:
Tk-Glitch 2021-11-22 16:16:40 +01:00
parent 24c3866114
commit 3ff1fe176e
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ md5sums=("$_md5sum"
'cb27b0f4a78af78aa96c5aacae23256c'
'3d2894e71d81570bd00bce416d3e547d'
'3d32130235acc5ab514e1021f7f5c439'
'204c5eeb18bdbbc86466e4da32f02003'
'5aec90d8d2e09b29e595270a0d3ecbf8'
'7a825f41ada7e106c8c0b713a49b3bfa'
'd961d1dce403c15743eecfe3201e4b6a'
'14460615a9d4e247c8d9bcae8776ed48'

View File

@ -12,4 +12,4 @@ Target=nvidia-dev-dkms-tkg
Description=Update Nvidia modules in initcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c '[[ -f /usr/bin/mkinitcpio ]] && mkinitcpio -P || echo -e "\e[31m mkinitcpio not found, please update initramfs manually\e[0m"'
Exec=/bin/sh -c 'if command -v mkinitcpio >/dev/null 2>&1; then mkinitcpio -P; else printf "\\033[31m mkinitcpio not found, please update initramfs manually\\033[0m\\n"; fi'