This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/check.sh

12 lines
192 B
Bash
Executable File

#!/bin/bash
FILE="$1"
if ([ -f "$FILE" ] && [ -s "$FILE" ]) || ([ -d "$FILE" ] && [ "$(ls -A "$FILE")" ]);
then
echo "[OK ] $FILE"
exit 0
else
echo "[FAIL] $FILE" >&2
exit 1
fi