Fix issue where EDITOR contains flags

This commit is contained in:
2014-07-21 16:07:33 +01:00
parent 2aa549ff70
commit 38932bf33e
4 changed files with 4 additions and 4 deletions

View File

@@ -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:"