loaih/checkbuilt.sh

14 lines
199 B
Bash

#!/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"
fi