diff options
| author | St33v <github@f3rr3t.com> | 2022-01-04 13:19:00 +1100 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2022-01-04 13:19:00 +1100 |
| commit | a3ccc194a12b041f5a6046124469330dd68b7193 (patch) | |
| tree | dfd767a0f8915af113f30d53f324cc5dcf7ba466 /func/deriveTimeString.sh | |
| parent | b18cd4eceb3786de741d64ec38c79f6ecc6aae49 (diff) | |
greater than or EQUAL to
Diffstat (limited to 'func/deriveTimeString.sh')
| -rwxr-xr-x | func/deriveTimeString.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/func/deriveTimeString.sh b/func/deriveTimeString.sh index 5cb8386..3708265 100755 --- a/func/deriveTimeString.sh +++ b/func/deriveTimeString.sh @@ -18,11 +18,11 @@ DeriveTime() { nowTime=$(\date -u +%H%M) # (I have date aliased to date -R) echo $nowDate$nowTime - if [ $nowTime -gt 1800 ] ; then + if [ $nowTime -ge 1800 ] ; then fileTime=1800 - elif [ $nowTime -gt 1200 ] ; then + elif [ $nowTime -ge 1200 ] ; then fileTime=1200 - elif [ $nowTime -gt 0600 ] ; then + elif [ $nowTime -ge 0600 ] ; then fileTime=0600 else fileTime=0000 |
