diff options
-rwxr-xr-x | libremakepkg | 10 | ||||
-rwxr-xr-x | librerelease | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libremakepkg b/libremakepkg index 0881b10..5ea64de 100755 --- a/libremakepkg +++ b/libremakepkg @@ -22,13 +22,13 @@ if [ $UID -ne 0 ]; then echo "This script must be run as root" exit 1 fi -if [ ! -e /etc/libretools.conf ]; then - echo "Config file doesn't exists" - exit 1 +custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf +if [-e $custom_config]; then + source $custom_config +else + source /etc/libretools.conf fi -source /etc/libretools.conf - echo "Updating the main chroot" mkarchroot -u -c ${CACHEDIR} ${CHROOTDIR}/${CHROOT} diff --git a/librerelease b/librerelease index c7b21e6..f684e4d 100755 --- a/librerelease +++ b/librerelease @@ -20,9 +20,9 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see <http://www.gnu.org/licenses/>. - -if [-e $XDG_CONFIG_HOME/.libretools.conf]; then - source $XDG_CONFIG_HOME/.libretools.conf +custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf +if [-e $custom_config]; then + source $custom_config else source /etc/libretools.conf fi |