Switch to dash.

This commit is contained in:
the_4n0nym0u53 2022-01-03 00:46:41 +01:00
parent c9275dea37
commit a05a6a756a
No known key found for this signature in database
GPG Key ID: 35EE09F5481049BB
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env dash
wl-copy -c
wl-copy -pc

View File

@ -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..."

View File

@ -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.