From 7c3bd5060ab9475e5791fd0fa756110362ddd89c Mon Sep 17 00:00:00 2001 From: Chris Down Date: Wed, 31 Oct 2018 08:12:09 +0000 Subject: [PATCH] Do $PATH lookup for bash --- clipdel | 2 +- clipmenu | 2 +- clipmenud | 2 +- tests/test-clipmenu | 4 ++-- tests/test-perf | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clipdel b/clipdel index d3ca5cd..80428f8 100755 --- 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 index 62929eb..c085eab 100755 --- 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 index 84c2c17..a5e3d98 100755 --- 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 index 4ee2ce2..7189666 100755 --- 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 index 3c51544..6866313 100755 --- 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/' |