bash: use absolute paths
All checks were successful
ci/woodpecker/push/lint Pipeline was successful

This commit is contained in:
Michael Grote 2024-05-07 00:41:38 +02:00
parent cb016f5b48
commit 7cc0af5fac

View file

@ -1,14 +1,13 @@
#!/bin/bash #!/bin/bash
# source extra files # source extra files
# https://stackoverflow.com/questions/6659689/referring-to-a-file-relative-to-executing-script source "/home/mg/dotfiles/.bash_aliases"
source "${BASH_SOURCE%/*}/.bash_aliases" source "/home/mg/dotfiles/.bash_functions"
source "${BASH_SOURCE%/*}/.bash_functions" source "/home/mg/dotfiles/.bash_ps1"
source "${BASH_SOURCE%/*}/.bash_ps1"
### PATH ### PATH
# add my scripts to PATH # add my scripts to PATH
PATH=$PATH:"${BASH_SOURCE%/*}/scripts" PATH=$PATH:"/home/mg/dotfiles/scripts"
### tmux auto attach ### tmux auto attach
# Check if the user ID is not 0 (root) # Check if the user ID is not 0 (root)