From 1e5ca4b7435bd19a1d115faa21df3912d6f7ae75 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Wed, 19 May 2021 14:32:58 +0300 Subject: [PATCH] termux-tools: pkg: fix bug where last_modified returned negative values --- packages/termux-tools/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/termux-tools/pkg b/packages/termux-tools/pkg index 060852429..04c2a5a2b 100755 --- a/packages/termux-tools/pkg +++ b/packages/termux-tools/pkg @@ -65,7 +65,7 @@ last_modified() { mtime=$(date -r "$1" '+%s') now=$(date '+%s') - echo $((mtime - now)) + echo $((now - mtime)) } select_mirror() {