Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 164b816 commit 1d9c0f0Copy full SHA for 1d9c0f0
cli/dotfiles.go
@@ -196,6 +196,13 @@ func (r *RootCmd) dotfiles() *clibase.Cmd {
196
// it is safe to use a variable command here because it's from
197
// a filtered list of pre-approved install scripts
198
// nolint:gosec
199
+
200
+ // making selected script executable
201
+ err = os.Chmod(filepath.Join(dotfilesDir, script), 0o755)
202
+ if err != nil {
203
+ return xerrors.Errorf("chmod %s: %w", script, err)
204
+ }
205
206
scriptCmd := exec.CommandContext(inv.Context(), filepath.Join(dotfilesDir, script))
207
scriptCmd.Dir = dotfilesDir
208
scriptCmd.Stdout = inv.Stdout
0 commit comments