From a05a6a756a348e04ab95d102f51e8522bb763036 Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Mon, 3 Jan 2022 00:46:41 +0100 Subject: [PATCH] Switch to dash. --- scripts/.local/bin/clear-clipboard.sh | 2 +- scripts/.local/bin/vfio.sh | 2 +- scripts/README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/.local/bin/clear-clipboard.sh b/scripts/.local/bin/clear-clipboard.sh index ff78998..80d13ac 100755 --- a/scripts/.local/bin/clear-clipboard.sh +++ b/scripts/.local/bin/clear-clipboard.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env dash wl-copy -c wl-copy -pc diff --git a/scripts/.local/bin/vfio.sh b/scripts/.local/bin/vfio.sh index 6bc2789..7866059 100755 --- a/scripts/.local/bin/vfio.sh +++ b/scripts/.local/bin/vfio.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env dash if [ $(id -u) -ne 0 ]; then echo "This script must be run as root. Quitting..." diff --git a/scripts/README.md b/scripts/README.md index 043bb14..02a62d9 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,5 +1,5 @@ # Scripts -For these custom scripts to work, you need to add `$HOME/.local/bin` to your `PATH`. +For these custom scripts to work, you need to add `$HOME/.local/bin` to your `PATH`. If you use my Zsh config, this is already taken care of. -If you use my Zsh config, this is already taken care of. +My scripts use the `dash` shell as the interpreter (the shebang line), so install that to use them. Othewise, change `#!/usr/bin/env dash` to `#!/usr/bin/env bash` or anything else that suits you.