#!/usr/bin/env bash # Lackadaisical Dependency Checker echo "Checking dependencies for LACKADAISICAL..." echo "==========================================" check_bin() { if [[ $1 ]]; then echo -e "[ \e[32mOK\e[0m ] $1 ($2)" return 0 else echo -e "[ \e[31m--\e[0m ] $1 ($2)" return 1 fi } echo "--- Core (Essential) ---" check_bin bash "Shell environment" check_bin awk "Text processing" check_bin sed "Stream editing" check_bin grep "Pattern matching" check_bin base64 "Data encoding" check_bin realpath "Path resolution" echo -e "\n--- Enhanced UI & Navigation ---" check_bin fzf "Used by cdf" check_bin peco "Used by cdp, editpeco" check_bin tree "Used by cdp, editpeco, daisy_enc_folder" check_bin dialog "Used by ched" echo -e "\n--- Archives & Filesystems ---" check_bin archivemount "Used by cdz (mounting)" check_bin tar "Used by cdz (extraction)" check_bin unzip "Used by cdz (extraction)" check_bin unrar "Used by cdz (extraction)" check_bin mksquashfs "Used by squasher make" check_bin rsync "Used by squasher destroy" check_bin sshfs "Used by sshp" check_bin fusermount "Used by sshp, cdz" echo -e "\n--- System ---" check_bin sudo "Privilege escalation" check_bin systemctl "Service management" check_bin perl "Advanced error reporting" echo "==========================================" echo "Check complete."