Skip to content

Commit

Permalink
Improve code shim output on git commit
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs committed Aug 15, 2024
1 parent c4decc7 commit de96818
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home/dot_local/bin/executable_code
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ if [ -n "${DEBUG:-}" ]; then
set -x
fi

# This ensures there's a line between git's "hint: Waiting for your editor to close the file..."
# and the next output
if [ -n "${GIT_INDEX_FILE:-}" ]; then
echo >&2
fi

# Find whether we are trying to open a directory
target_dir=""
for arg in "$@"; do
Expand Down

0 comments on commit de96818

Please sign in to comment.