From: Sergey Matveev Date: Mon, 9 Oct 2023 20:07:49 +0000 (+0300) Subject: Path to .do should be absolute X-Git-Tag: v2.1.0~1 X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=commitdiff_plain;h=56d6ddd409d8c674c488e119374ce66e07f713e9 Path to .do should be absolute --- diff --git a/doc/news.texi b/doc/news.texi index ec0d5e8..302e01e 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -2,6 +2,14 @@ @cindex news @unnumbered News +@anchor{Release 2_1_0} +@section Release 2.1.0 +@itemize +@item + Mistakenly path to @file{.do} file was not absolute and OS can + refuse to run it because it is not in @env{$PATH}. +@end itemize + @anchor{Release 2_0_0} @section Release 2.0.0 @itemize diff --git a/run.go b/run.go index 15628dd..7a4c1e4 100644 --- a/run.go +++ b/run.go @@ -371,7 +371,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error { var cmdName string var args []string if err = unix.Access(doFile.rel, unix.X_OK); err == nil { - cmdName = doFileT + cmdName = doFile.a args = make([]string, 0, 3) } else { cmdName = "/bin/sh" diff --git a/usage.go b/usage.go index f29b2b9..ca592b0 100644 --- a/usage.go +++ b/usage.go @@ -24,7 +24,7 @@ import ( ) const ( - Version = "2.0.0" + Version = "2.1.0" Warranty = `Copyright (C) 2020-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify