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"