10 行
236 B
Bash
10 行
236 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
for program in python3 rsync ntfs-3g; do
|
|
if ! command -v "$program" >/dev/null; then
|
|
printf '系统缺少运行组件:%s\n' "$program" > "$TRIM_TEMP_LOGFILE"
|
|
exit 1
|
|
fi
|
|
done
|
|
exit 0
|