From fc2409969388b4c348f41a09a27b766b9265343b Mon Sep 17 00:00:00 2001 From: "thorsten.spille" Date: Sun, 12 Jun 2022 11:35:31 +0200 Subject: [PATCH] Add package check --- run | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run b/run index 73b81cb..ae2c689 100755 --- a/run +++ b/run @@ -5,4 +5,9 @@ PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" source environment VERSION=$(wget -q -O - $dl_prefix/ | grep -o "$1.[0-9]" | tail -1) -./builder $VERSION \ No newline at end of file +if [ $(aptly repo search bashclub python$1 | grep $VERSION) -gt 0 ]; then + echo "Building new version of python$1." + ./builder $VERSION +else + echo "Current release already present in repo. Skipping build." +fi \ No newline at end of file