Reorganization to hopefully prevent git conflicts.

This commit is contained in:
Storm Dragon
2025-10-25 01:30:02 -04:00
parent f6990bcc81
commit d684623974
13 changed files with 296 additions and 77 deletions

View File

@@ -14,4 +14,11 @@ if ! check_dependencies "${dependencies[@]}"; then
exit 1
fi
msg "$chan" "$(units -v ${*#* } | head -n1 | tr -d '[:space:]')"
# Validate input
if [[ -z "$*" ]]; then
msg "$chan" "Please provide a unit conversion (e.g., '10 meters to feet')."
exit 0
fi
# Quote variables to prevent command injection
msg "$chan" "$(units -v "${*#* }" | head -n1 | tr -d '[:space:]')"