about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-14 15:59:25 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-14 15:59:25 +0200
commit5971e20aa07d285944fa9668002ed00e0c56f944 (patch)
treebc283d5f09d29217945d3fcec38a735fe3f71c50
parentpkgs/{lm,ll}: Don't leak bash options in shell context (diff)
downloadnixos-config-5971e20aa07d285944fa9668002ed00e0c56f944.zip
pkgs/fupdate-sys: Correctly print colour sequences
Diffstat (limited to '')
-rwxr-xr-xpkgs/by-name/fu/fupdate-sys/fupdate-sys.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh b/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh
index 6f8ce313..435c45a8 100755
--- a/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh
+++ b/pkgs/by-name/fu/fupdate-sys/fupdate-sys.sh
@@ -13,10 +13,12 @@ die() {
     fi
 }
 print() {
-    printf "%s" "$*"
+    # shellcheck disable=SC2059
+    printf "$*"
 }
 println() {
-    printf "%s\n" "$*"
+    # shellcheck disable=SC2059
+    printf "$*\n"
 }
 eprint() {
     >&2 print "$@"