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
2016-06-23 12:17:37 -07:00

10 lines
172 B
Bash
Executable File

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