From 06018439f9c39b3a83b04db8e7b74061db6b8f56 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 19 Mar 2022 01:21:56 +0100 Subject: [PATCH] Aggiunto controllo build versione. --- checkbuilt.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 checkbuilt.sh diff --git a/checkbuilt.sh b/checkbuilt.sh new file mode 100644 index 0000000..e86d165 --- /dev/null +++ b/checkbuilt.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +storage=$1 +version=$2 +shift 2 + +count=$(find "${storage}" -iname "*${version}*.AppImage" | wc -l) + +if [[ ${count} -eq 0 ]]; then + echo "status: built" +else + echo "status: not built"