barrierc: Fix paths

This commit is contained in:
crater2150 2025-08-04 21:11:15 +02:00
parent 97783f9c00
commit 58782c2d75

View file

@ -1,13 +1,13 @@
#!/bin/zsh #!/bin/zsh
if [[ ! -e ${0:a:h}/server ]] then if [[ ! -e ${0:A:h}/server ]] then
<<-ERROR <<-ERROR
Service requires configuration! Service requires configuration!
Create \`${0:a:h}/server\` containing the target server name Create \`${0:A:h}/server\` containing the target server name
ERROR ERROR
exit 1 exit 1
fi fi
source ${0:a:h:h}/import-env.zsh source ${0:A:h:h}/import-env.zsh
import-env awesome || exit 1 import-env awesome || exit 1
exec 2>&1 exec 2>&1
exec barrierc --no-daemon $(<${0:a:h}/server) exec barrierc --no-daemon $(<${0:A:h}/server)