|
|
@@ -3372,8 +3372,8 @@ nochange: |
|
|
|
xstrlcpy(lastname, tmp, NAME_MAX + 1); |
|
|
|
goto begin; |
|
|
|
case SEL_SHELL: // fallthrough |
|
|
|
case SEL_RUNSCRIPT: |
|
|
|
if (sel == SEL_RUNSCRIPT) { |
|
|
|
case SEL_SCRIPT: |
|
|
|
if (sel == SEL_SCRIPT) { |
|
|
|
tmp = getenv("NNN_SCRIPT"); |
|
|
|
if (tmp) { |
|
|
|
if (getenv("NNN_MULTISCRIPT")) { |
|
|
@@ -3385,6 +3385,12 @@ nochange: |
|
|
|
tmp = newpath; |
|
|
|
} |
|
|
|
|
|
|
|
/* Check if file exists */ |
|
|
|
if (access(tmp, F_OK) == -1) { |
|
|
|
printwarn(); |
|
|
|
goto nochange; |
|
|
|
} |
|
|
|
|
|
|
|
dir = NULL; /* dir used as temp var */ |
|
|
|
if (ndents) |
|
|
|
dir = dents[cur].name; |
|
|
|