From 55d3849414c8fb996945f874d8cf79feb62589a0 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 4 Feb 2022 01:02:40 -0300 Subject: [PATCH] Add build.sh --- build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..3a08d8d --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +buildDatabase() { + repo-add -s -n -R -k "199980CE93F18E62" calrepo.db.tar.gz *.pkg.tar.zst +} + +runScript() { + lastFolder=$(pwd -P) + cd x86_64 || { echo "Couldn't cd into 'x86_64'." 1>&2 && exit 1; } + + buildDatabase + + cd "$lastFolder" || { echo "Couldn't cd into '$lastFolder'." 1>&2 && exit 1; } +} + +runScript \ No newline at end of file