fix(lib): restore env_flags and final_cmd initialization before kind detection in herdr new-session shim
This commit is contained in:
@@ -257,6 +257,13 @@ for tok in tokens:
|
||||
print('\t'.join(env_flags) + '\n' + ' '.join(binary_tokens))
|
||||
" "$run_cmd" 2>/dev/null || echo "")
|
||||
|
||||
env_flags=""
|
||||
final_cmd="$run_cmd"
|
||||
if [ -n "$parsed" ]; then
|
||||
env_flags=$(echo "$parsed" | head -n 1 | tr '\t' ' ')
|
||||
final_cmd=$(echo "$parsed" | tail -n +2)
|
||||
fi
|
||||
|
||||
kind="cline"
|
||||
if echo "$name" | grep -qi "agy"; then
|
||||
kind="agy"
|
||||
|
||||
Reference in New Issue
Block a user