Reorganization to hopefully prevent git conflicts.
This commit is contained in:
@@ -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:]')"
|
||||
|
||||
Reference in New Issue
Block a user