updated build-helper.yml

This commit is contained in:
sawka 2024-01-17 14:52:49 -08:00
parent 4ac5d93ed2
commit 781ed2e57e
2 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ jobs:
mv out/make/zip/linux/x64/Wave-linux-x64-$WAVETERM_VERSION.zip buildtemp/waveterm-linux-x64-v$WAVETERM_VERSION.zip
- uses: actions/upload-artifact@v4
with:
name: waveterm-build-linux-x64
name: waveterm-builds
path: buildtemp
retention-days: 2

View File

@ -188,9 +188,9 @@ func bashParseDeclareOutput(state *packet.ShellState, declareBytes []byte, pvarB
declareStr := string(declareBytes)
r := bytes.NewReader(declareBytes)
parser := syntax.NewParser(syntax.Variant(syntax.LangBash))
file, err := parser.Parse(r, "aliases")
file, err := parser.Parse(r, "bash-declare-output")
if err != nil {
return err
return fmt.Errorf("cannot parse bash declare output: %w", err)
}
var firstParseErr error
declMap := make(map[string]*DeclareDeclType)
@ -293,7 +293,7 @@ func bashAssocArrayVarToMap(d *DeclareDeclType) (map[string]string, error) {
parser := syntax.NewParser(syntax.Variant(syntax.LangBash))
file, err := parser.Parse(r, "assocdecl")
if err != nil {
return nil, err
return nil, fmt.Errorf("parsing bash assoc-array value: %w", err)
}
if len(file.Stmts) != 1 {
return nil, fmt.Errorf("invalid assoc-array parse (multiple stmts)")