mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-11-07 16:24:06 +01:00
ci: Prevent fish from creating tempfiles
This commit is contained in:
parent
fa311d5119
commit
0cefe6efe1
5
.gitignore
vendored
5
.gitignore
vendored
@ -8,9 +8,8 @@
|
||||
|
||||
# Project
|
||||
/.circleci/.config.yml
|
||||
.download
|
||||
bin
|
||||
man
|
||||
/bin
|
||||
/man
|
||||
|
||||
# Side-Effects
|
||||
/test/data/.config/fish
|
||||
|
14
test/shimexec/fish
Executable file
14
test/shimexec/fish
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Find the real fish.
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
while read -d ':' -r dir; do
|
||||
if [[ "$dir" == "$HERE" || -z "$dir" ]]; then continue; fi
|
||||
if [[ -f "${dir}/fish" ]]; then
|
||||
TMPDIR= "${dir}/fish" "$@"
|
||||
exit $?
|
||||
fi
|
||||
done <<<"$PATH:"
|
||||
|
||||
# Print error and exit.
|
||||
echo "fish was not found on \$PATH" 1>&2
|
||||
exit 127
|
Loading…
Reference in New Issue
Block a user