Skip to content

Commit

Permalink
Fix non-POSIX date format checks
Browse files Browse the repository at this point in the history
  • Loading branch information
n-ivkovic committed Jan 31, 2024
1 parent 64f54df commit 052faab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tspreed
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ read -rs -n 0 -t 0.0 2>/dev/null && non_posix_read=true || non_posix_read=false
sleep 0e-3 2>/dev/null && non_posix_sleep_enotation=true || non_posix_sleep_enotation=false
sleep 0.0 2>/dev/null && non_posix_sleep_fractional=true || non_posix_sleep_fractional=false
[ -n "$(command -v usleep)" ] && non_posix_usleep=true || non_posix_usleep=false
! [ "$(date "+%N")" = "%N" ] 2>/dev/null && non_posix_date_n=true || non_posix_date_n=false
! [ "$(date "+%s")" = "%s" ] 2>/dev/null && non_posix_date_s=true || non_posix_date_s=false
[ "$(date "+%N")" -ge 0 ] 2>/dev/null && non_posix_date_n=true || non_posix_date_n=false
[ "$(date "+%s")" -ge 0 ] 2>/dev/null && non_posix_date_s=true || non_posix_date_s=false

# Validate required non-POSIX capabilities
if [ "$keycontrols" = true ]; then
Expand Down

0 comments on commit 052faab

Please sign in to comment.