mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 07:37:54 +00:00
Fix shellcheck SC2268
shellcheck 0.11.0 complains:
```
In debian/initramfs-tools.postinst line 6:
if [ "x$1" != xtriggered ]; then
^---^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose.
Did you mean:
if [ "$1" != triggered ]; then
```
This commit is contained in:
parent
813886bbb3
commit
7d68e103cc
2
debian/initramfs-tools.postinst
vendored
2
debian/initramfs-tools.postinst
vendored
@ -3,7 +3,7 @@
|
||||
set -e
|
||||
|
||||
# Regenerate initramfs whenever we go to dpkg state `installed'
|
||||
if [ "x$1" != xtriggered ]; then
|
||||
if [ "$1" != triggered ]; then
|
||||
# this activates the trigger, if triggers are working
|
||||
update-initramfs -u
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user