commit 7c3bd5060ab9475e5791fd0fa756110362ddd89c
parent 50ba3d4b8f8cdd891c25dcca6c693ccbe526bab2
Author: Chris Down <chris@chrisdown.name>
Date: Wed, 31 Oct 2018 08:12:09 +0000
Do $PATH lookup for bash
Diffstat:
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/clipdel b/clipdel
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
: "${CM_DIR="${XDG_RUNTIME_DIR-"${TMPDIR-/tmp}"}"}"
CM_REAL_DELETE=0
diff --git a/clipmenu b/clipmenu
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
: "${CM_LAUNCHER=dmenu}"
: "${CM_DIR="${XDG_RUNTIME_DIR-"${TMPDIR-/tmp}"}"}"
diff --git a/clipmenud b/clipmenud
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
: "${CM_ONESHOT=0}"
: "${CM_OWN_CLIPBOARD=1}"
diff --git a/tests/test-clipmenu b/tests/test-clipmenu
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
set -x
set -e
@@ -18,7 +18,7 @@ else
fi
cat - "$location/../clipmenu" > /tmp/clipmenu << 'EOF'
-#!/bin/bash
+#!/usr/bin/env bash
shopt -s expand_aliases
diff --git a/tests/test-perf b/tests/test-perf
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
major_version=5
@@ -28,7 +28,7 @@ fi
msg 'Setting up edited clipmenu'
cat - "$location/../clipmenu" > /tmp/clipmenu << EOF
-#!/bin/bash
+#!/usr/bin/env bash
exec 3>&2 2> >(tee "$log" |
sed -u 's/^.*$/now/' |