diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-03-09 21:56:26 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-03-09 21:56:26 -0500 |
commit | bf04c7b602a3ea2576749cc378cd4c8129592d11 (patch) | |
tree | a718ae94e2e51394cbd7386aa9e4262468ca821b /tests | |
parent | b4a36d78867327b321077ac94ee224f9845fa2ac (diff) |
Use redirect and chmod instead of install
install didn't work on MacOS:
install: skipping file '/dev/stdin', as it was replaced while being copied
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_navigate_less_history_file | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_navigate_less_history_file b/tests/test_navigate_less_history_file index 4ba7e0b7..7ec5a95f 100755 --- a/tests/test_navigate_less_history_file +++ b/tests/test_navigate_less_history_file @@ -18,10 +18,11 @@ DELTA="${1:-./target/release/delta} --no-gitconfig --navigate" unset DELTA_PAGER TEMPDIR="$(mktemp -d)" export PAGER="$TEMPDIR/less" -install -m755 /dev/stdin "$PAGER" <<-EOF +cat >"$PAGER" <<-EOF #!/bin/sh cat EOF +chmod 755 $PAGER test_delta_less_hist_file_created () { DELTA_HIST_FILE="${XDG_DATA_HOME:-$HOME/.local/share}/delta/lesshst" |