This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Exit immediately if a command exits with a non-zero status. | |
set -e | |
# Function to check for required utilities | |
function check_utilities() { | |
local utilities=("qm" "wget" "xz" "sha256sum" "ssh-keygen") | |
for util in "${utilities[@]}"; do | |
command -v "$util" >/dev/null 2>&1 || { echo "$util not found. Please install it."; exit 1; } |