shellcheck, better automated upgrades
[distro-setup] / i3-sway / gen
index bf24f81597206d92a7255c2c8f909d8e3f2fe38e..22a4e476bfc4ff477e404711a94bc8cdbbc2b816 100755 (executable)
@@ -3,7 +3,7 @@
 set -eE -o pipefail
 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 
-x="$(readlink -f -- "$BASH_SOURCE")"; cd ${x%/*} # directory of this file
+x="$(readlink -f -- "${BASH_SOURCE[0]}")"; cd ${x%/*} # directory of this file
 
 cat common.conf sway.conf > /a/bin/distro-setup/subdir_files/.config/sway/config
 cat common.conf i3.conf > /a/bin/distro-setup/subdir_files/.config/i3/config