Handle negated check returning false when file is present

This commit is contained in:
Alex D. 2023-09-15 06:36:59 +00:00
parent 290bc23228
commit ec01f5f717
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
. ../../APKBUILD.template
pkgname=nnd-s6-services
pkgver=2.51
pkgver=2.52
pkgrel=0
pkgdesc="Base services for s6"
depends="s6-rc s6-portable-utils s6-linux-utils"

View File

@ -2,7 +2,7 @@
s6-envdir -i /etc/s6/env/path
emptyenv -p
if -n { [ -r /etc/machine-id ] }
ifelse -Xn { [ -r /etc/machine-id ] } {
redirfd -w 1 /etc/machine-id
foreground {
pipeline {
@ -12,3 +12,4 @@ if -n { [ -r /etc/machine-id ] }
} head -c 32
}
printf "\n"
} true