barrierc: Fix paths
This commit is contained in:
parent
97783f9c00
commit
58782c2d75
1 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
|||
#!/bin/zsh
|
||||
if [[ ! -e ${0:a:h}/server ]] then
|
||||
if [[ ! -e ${0:A:h}/server ]] then
|
||||
<<-ERROR
|
||||
Service requires configuration!
|
||||
Create \`${0:a:h}/server\` containing the target server name
|
||||
Create \`${0:A:h}/server\` containing the target server name
|
||||
ERROR
|
||||
exit 1
|
||||
fi
|
||||
source ${0:a:h:h}/import-env.zsh
|
||||
source ${0:A:h:h}/import-env.zsh
|
||||
import-env awesome || exit 1
|
||||
|
||||
exec 2>&1
|
||||
exec barrierc --no-daemon $(<${0:a:h}/server)
|
||||
exec barrierc --no-daemon $(<${0:A:h}/server)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue