cd to script directory before doing anything

This commit is contained in:
Guillaume Raffin 2024-01-12 11:56:47 +01:00 committed by GitHub
parent ee131052db
commit 61f04a3ece
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,8 @@
# Author: TheElectronWill
# This script downloads the latest version of Discord for linux, and creates a package with rpmbuild.
cd "$(dirname "$(readlink -f -- "$0")")"
source terminal-colors.sh # Adds color variables
source common-functions.sh # Adds utilities functions
source basic-checks.sh # Checks that rpmbuild is available and that the script isn't started as root