We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e171fcb commit e9fd19fCopy full SHA for e9fd19f
packaging/linux/postinstall
@@ -18,8 +18,8 @@ ensure_line "nav/NAV_Sub_CA.crt" "/etc/ca-certificates.conf"
18
19
update-ca-certificates
20
21
-systemd_version="$(systemctl --version | head -n 1 | grep -o '[0-9]+' | head -n 1)"
22
-if [[ $systemd_version -gt 255 ]]; then
+systemd_version="$(systemctl --version | head -n 1 | grep -oP '[0-9]+' | head -n 1)"
+if [ "$((systemd_version))" -gt "255" ]; then
23
user_accounts=$(loginctl list-users -j | jq '[.[] | select(.uid >= 1000)]')
24
else
25
user_accounts=$(loginctl list-users --output json | jq '[.[] | select(.uid >= 1000)]')
0 commit comments