mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix, allow empty values for pvar fields
This commit is contained in:
@@ -426,7 +426,7 @@ func parseDeclareOutput(state *packet.ShellState, declareBytes []byte, pvarBytes
|
||||
if len(pvarFields) != 2 {
|
||||
continue
|
||||
}
|
||||
if pvarFields[0] == "" || pvarFields[1] == "" {
|
||||
if pvarFields[0] == "" {
|
||||
continue
|
||||
}
|
||||
decl := &DeclareDeclType{Args: "x"}
|
||||
|
||||
Reference in New Issue
Block a user