mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Fix issue where EDITOR contains flags
This commit is contained in:
@@ -47,7 +47,7 @@ content="$(cat "$template")"
|
||||
echo "${content//\{\{WINDOW_NAME\}\}/$layout_name}" > "$layout_file"
|
||||
|
||||
if [ -n "$EDITOR" ]; then
|
||||
exec "$EDITOR" "$layout_file"
|
||||
exec $EDITOR "$layout_file"
|
||||
else
|
||||
echo "Layout file has been created, but '\$EDITOR' is not set. Please "
|
||||
echo "manually open the layout for editing:"
|
||||
|
||||
Reference in New Issue
Block a user