From 61f04a3eceb838edef4b06cd382f2fbf54881cb6 Mon Sep 17 00:00:00 2001 From: Guillaume Raffin Date: Fri, 12 Jan 2024 11:56:47 +0100 Subject: [PATCH] cd to script directory before doing anything --- create-package.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/create-package.sh b/create-package.sh index 6136eab..5804c66 100755 --- a/create-package.sh +++ b/create-package.sh @@ -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