master
Bel LaPointe 2024-09-04 16:44:40 -06:00
parent 43e2d0c14f
commit 40fb31e6f6
1 changed files with 9 additions and 1 deletions

View File

@ -60,7 +60,7 @@ main() {
threshold="$max_of_last_n"
fi
done
threshold="$(perl -e "print $threshold + 0.005")"
threshold="$(_perl -e "print $threshold + 0.005")"
local has_change=false
if [ "${#flattened_scores[@]}" -lt 10 ]; then
@ -99,4 +99,12 @@ _date() {
fi
}
_perl() {
if which perl &> /dev/null; then
perl "$@"
else
/var/services/homes/squeaky2x3/.nix-profile/bin/perl "$@"
fi
}
main "$@"