Cd into the script's dir before starting

This commit is contained in:
Augusto Gunsch 2021-08-12 19:29:29 -03:00
parent 467218ee26
commit 8c0eba70e4
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,9 @@ ultra_quiet() {
### FORCE ROOT ###
[ $(whoami) != "root" ] && echo "Please run as root" && exit 1
### CD TO MY DIR ###
cd "$(basename "$0")"
### URLs ###
FZF_DOWNLOAD="$(curl -s https://api.github.com/repos/junegunn/fzf/releases/latest | grep linux_amd64 | sed -nE 's/^\s*"browser_download_url":\s*"(.*)"\s*$/\1/p')"
PARTED_DOWNLOAD="https://archlinux.org/packages/extra/x86_64/parted/download"

View File

@ -21,6 +21,9 @@ quiet() {
set -e
}
### CD TO MY DIR ###
cd "$(basename "$0")"
### URLs ###
DOTFILES="https://github.com/augustogunsch/dotfiles"
PACKAGES_URL="https://raw.githubusercontent.com/augustogunsch/install-arch/master/packages.csv"