loaih/checkbuilt.sh

16 lines
232 B
Bash
Raw Normal View History

2022-03-19 00:21:56 +00:00
#!/bin/bash
storage=$1
version=$2
shift 2
count=$(find "${storage}" -iname "*${version}*.AppImage" | wc -l)
if [[ ${count} -eq 0 ]]; then
echo "status: not built"
exit 1
else
echo "status: built"
# Nothing more to do!
2022-03-19 00:27:48 +00:00
fi