diff --git a/install.sh b/install.sh index 3d4f170..a011b23 100755 --- a/install.sh +++ b/install.sh @@ -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" diff --git a/post-install.sh b/post-install.sh index f33823f..d395cdb 100755 --- a/post-install.sh +++ b/post-install.sh @@ -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"