You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/check.sh
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -51,3 +51,12 @@ for rev in $(git rev-list --reverse HEAD); do
51
51
latest_timestamp=${latest_timestamp:-$highest}
52
52
fi
53
53
done
54
+
55
+
curr_date=$("$DATE" +"%Y-%m-%dT%H:%M:%SZ" -u)
56
+
a=$(convert_timestamp_to_unix_time "$curr_date")
57
+
b=$(convert_timestamp_to_unix_time "$highest")
58
+
if [[ $a-le$b ]];then
59
+
echo"ERROR: The latest timestamp $highest is beyond the current time $curr_date."
60
+
echo"Please use the script \`./scripts/add-from-github.sh\` or \`./scripts/add-revision.sh\` to automatically set the timestamp to an appropriate value when you add a package"
0 commit comments