Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d9c0f0

Browse files
committed
make dotfiles install scripts executable
1 parent164b816 commit1d9c0f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎cli/dotfiles.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,13 @@ func (r *RootCmd) dotfiles() *clibase.Cmd {
196196
// it is safe to use a variable command here because it's from
197197
// a filtered list of pre-approved install scripts
198198
// nolint:gosec
199+
200+
// making selected script executable
201+
err=os.Chmod(filepath.Join(dotfilesDir,script),0o755)
202+
iferr!=nil {
203+
returnxerrors.Errorf("chmod %s: %w",script,err)
204+
}
205+
199206
scriptCmd:=exec.CommandContext(inv.Context(),filepath.Join(dotfilesDir,script))
200207
scriptCmd.Dir=dotfilesDir
201208
scriptCmd.Stdout=inv.Stdout

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp