Skip to content

Commit 696bcfe

Browse files
committed
dankinstall: fix deb sudo command
1 parent 2f3a253 commit 696bcfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/internal/distros/debian.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ func (d *DebianDistribution) enableOBSRepos(ctx context.Context, obsPkgs []Packa
453453
CommandInfo: fmt.Sprintf("curl & gpg to add key for %s", pkg.RepoURL),
454454
}
455455

456-
keyCmd := fmt.Sprintf("curl -fsSL %s/Release.key | gpg --dearmor -o %s", baseURL, keyringPath)
456+
keyCmd := fmt.Sprintf("bash -c 'curl -fsSL %s/Release.key | gpg --dearmor -o %s'", baseURL, keyringPath)
457457
cmd := ExecSudoCommand(ctx, sudoPassword, keyCmd)
458458
if err := d.runWithProgress(cmd, progressChan, PhaseSystemPackages, 0.18, 0.20); err != nil {
459459
return fmt.Errorf("failed to add OBS GPG key for %s: %w", pkg.RepoURL, err)

0 commit comments

Comments
 (0)