fix manipulation minify applying to bash arrays
This commit is contained in:
parent
cb6cf4a1d7
commit
4b8e3874e1
1 changed files with 3 additions and 1 deletions
|
|
@ -415,6 +415,8 @@ bool r_minify_empty_manip(_obj* in)
|
||||||
if(ss->var->is_manip)
|
if(ss->var->is_manip)
|
||||||
{
|
{
|
||||||
// if is a manip: possibility to skip it
|
// if is a manip: possibility to skip it
|
||||||
|
if(ss->var->index != nullptr) // is a var bash array: skip
|
||||||
|
return true;
|
||||||
if(i+1<t->sa.size() && t->sa[i+1]->type == _obj::subarg_string)
|
if(i+1<t->sa.size() && t->sa[i+1]->type == _obj::subarg_string)
|
||||||
{
|
{
|
||||||
// if next subarg is a string: check its first char
|
// if next subarg is a string: check its first char
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue