Skip to content

Commit

Permalink
fix: fix wrong parameter order (#1270)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang authored Sep 25, 2024
1 parent f53c2e4 commit a209e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/workspace/install_dotfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (cmd *InstallDotfilesCmd) Run(ctx context.Context) error {

if cmd.InstallScript != "" {
logger.Infof("Executing install script %s", cmd.InstallScript)
command := "./" + strings.TrimPrefix("./", cmd.InstallScript) + cmd.InstallScript
command := "./" + strings.TrimPrefix(cmd.InstallScript, "./") + cmd.InstallScript

err := ensureExecutable(command)
if err != nil {
Expand Down

0 comments on commit a209e14

Please sign in to comment.