summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-03-09 21:56:26 -0500
committerDan Davison <dandavison7@gmail.com>2021-03-09 21:56:26 -0500
commitbf04c7b602a3ea2576749cc378cd4c8129592d11 (patch)
treea718ae94e2e51394cbd7386aa9e4262468ca821b /tests
parentb4a36d78867327b321077ac94ee224f9845fa2ac (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-xtests/test_navigate_less_history_file3
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"