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:
@@ -38,7 +38,7 @@ if [ ! -f "$layout_file" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$EDITOR" ]; then
|
if [ -n "$EDITOR" ]; then
|
||||||
exec "$EDITOR" "$layout_file"
|
exec $EDITOR "$layout_file"
|
||||||
else
|
else
|
||||||
echo "'\$EDITOR' is not set. Please manually open the layout for editing:"
|
echo "'\$EDITOR' is not set. Please manually open the layout for editing:"
|
||||||
echo "$layout_file"
|
echo "$layout_file"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ if [ ! -f "$layout_file" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$EDITOR" ]; then
|
if [ -n "$EDITOR" ]; then
|
||||||
exec "$EDITOR" "$layout_file"
|
exec $EDITOR "$layout_file"
|
||||||
else
|
else
|
||||||
echo "'\$EDITOR' is not set. Please manually open the layout for editing:"
|
echo "'\$EDITOR' is not set. Please manually open the layout for editing:"
|
||||||
echo "$layout_file"
|
echo "$layout_file"
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ content="$(cat "$template")"
|
|||||||
echo "${content//\{\{SESSION_NAME\}\}/$layout_name}" > "$layout_file"
|
echo "${content//\{\{SESSION_NAME\}\}/$layout_name}" > "$layout_file"
|
||||||
|
|
||||||
if [ -n "$EDITOR" ]; then
|
if [ -n "$EDITOR" ]; then
|
||||||
exec "$EDITOR" "$layout_file"
|
exec $EDITOR "$layout_file"
|
||||||
else
|
else
|
||||||
echo "Layout file has been created, but '\$EDITOR' is not set. Please "
|
echo "Layout file has been created, but '\$EDITOR' is not set. Please "
|
||||||
echo "manually open the layout for editing:"
|
echo "manually open the layout for editing:"
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ content="$(cat "$template")"
|
|||||||
echo "${content//\{\{WINDOW_NAME\}\}/$layout_name}" > "$layout_file"
|
echo "${content//\{\{WINDOW_NAME\}\}/$layout_name}" > "$layout_file"
|
||||||
|
|
||||||
if [ -n "$EDITOR" ]; then
|
if [ -n "$EDITOR" ]; then
|
||||||
exec "$EDITOR" "$layout_file"
|
exec $EDITOR "$layout_file"
|
||||||
else
|
else
|
||||||
echo "Layout file has been created, but '\$EDITOR' is not set. Please "
|
echo "Layout file has been created, but '\$EDITOR' is not set. Please "
|
||||||
echo "manually open the layout for editing:"
|
echo "manually open the layout for editing:"
|
||||||
|
|||||||
Reference in New Issue
Block a user