Skip to content

Commit bf5a741

Browse files
committed
.
1 parent f91e4a4 commit bf5a741

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/scripts/smoke-test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ check_single_execstart() {
152152
return # check_unit_file already reported the absence
153153
fi
154154
# Match only non-empty ExecStart= lines; bare 'ExecStart=' is a reset directive.
155-
count=$(grep -c '^ExecStart=[^[:space:]]' "$unit_file" 2>/dev/null || echo 0)
155+
count=$(grep -c '^ExecStart=[^[:space:]]' "$unit_file" 2>/dev/null || true)
156156
if [ "$count" -eq 1 ]; then
157157
pass "Service file has exactly one ExecStart directive"
158158
else

ci/tlk.ps1

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ class TlkRecipe
867867
$s = New-Changelog -Format 'RpmPackaging' -InputFile $UpstreamChangelogFile -Packager $Packager -Email $Email
868868
Set-Content -Path $RpmPackagingChangelogFile -Value $s
869869

870-
$FpmArgs = @(
870+
$FpmOptions = @(
871871
'--force'
872872
'--verbose'
873873
'-s', 'dir'
@@ -885,23 +885,25 @@ class TlkRecipe
885885
'--after-install', "$InputPackagePath/$($this.Product)/rpm/postinst"
886886
'--before-remove', "$InputPackagePath/$($this.Product)/rpm/prerm"
887887
'--after-remove', "$InputPackagePath/$($this.Product)/rpm/postrm"
888-
'--'
888+
)
889+
890+
$FpmFiles = @(
889891
"$Executable=/usr/bin/$PkgName"
890892
"$RpmUpstreamChangelogFile=/usr/share/doc/$PkgName/ChangeLog"
891893
"$CopyrightFile=/usr/share/doc/$PkgName/copyright"
892894
)
893895

894896
if ($this.Product -eq "gateway") {
895-
$FpmArgs += @(
896-
'--rpm-attr', '644,root,root:/usr/lib/systemd/system/devolutions-gateway.service',
897+
$FpmOptions += '--rpm-attr', '644,root,root:/usr/lib/systemd/system/devolutions-gateway.service'
898+
$FpmFiles += @(
897899
"$InputPackagePath/gateway/rpm/service=/usr/lib/systemd/system/devolutions-gateway.service",
898900
"$DGatewayWebClient=/usr/share/devolutions-gateway/webapp/client",
899901
"$DGatewayWebPlayer=/usr/share/devolutions-gateway/webapp/player",
900902
"$DGatewayLibXmf=/usr/lib/devolutions-gateway/libxmf.so"
901903
)
902904
}
903905

904-
& 'fpm' @FpmArgs | Out-Host
906+
& 'fpm' @FpmOptions '--' @FpmFiles | Out-Host
905907

906908
if (Test-Path Env:TARGET_OUTPUT_PATH) {
907909
$TargetOutputPath = $Env:TARGET_OUTPUT_PATH

0 commit comments

Comments
 (0)