#!/bin/bash

### Validate the Debian tools used by the application before installation.

for command_name in lsblk findmnt mount umount; do
    if ! command -v "$command_name" >/dev/null 2>&1; then
        printf '系统缺少必要命令：%s\n' "$command_name" > "$TRIM_TEMP_LOGFILE"
        exit 1
    fi
done

exit 0
