From 0610cc873bfcec666099867150788bc3da873d5d Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 27 Jul 2020 15:43:52 +0200 Subject: Replace hostname executable bin/startsway: Replace use of hostname executable with HOSTNAME variable (as it's a bash script). --- bin/startsway | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/startsway b/bin/startsway index 2f3c5ee..0809fb8 100755 --- a/bin/startsway +++ b/bin/startsway @@ -17,7 +17,7 @@ export RUST_BACKTRACE=full mkdir -p "$HOME/.log" config="$HOME/.config/sway/config" -if [ -f "$HOME/.config/sway/$(hostname)" ]; then - config="$HOME/.config/sway/$(hostname)" +if [ -f "$HOME/.config/sway/${HOSTNAME}" ]; then + config="$HOME/.config/sway/${HOSTNAME}" fi /usr/bin/sway -c "$config" > "$HOME/.log/sway.log" 2>&1 -- cgit v1.2.3-70-g09d2