From a38d06030c3bec808ce132234f034253379a5e4e Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Sun, 28 Jun 2020 22:03:09 -0500 Subject: [PATCH] small update --- fpf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fpf b/fpf index fc33b4f..9618919 100644 --- a/fpf +++ b/fpf @@ -28,10 +28,8 @@ Help() { # Check things are up to date UpdateInfos() { [ -f /var/lib/pacman/sync/core.files ] || { echo -e "Syncing files database"; sudo pacman -Fy; } - d1=$(stat -c %y /var/lib/pacman/sync/core.files) - d2=$(stat -c %y /var/lib/pacman/sync/core.db) - d1="${d1:0:10}" - d2="${d2:0:10}" + d1="${$(stat -c %y /var/lib/pacman/sync/core.files):0:10}" + d2="${$(stat -c %y /var/lib/pacman/sync/core.db):0:10}" [[ "${d2///-/}" > "${d1//-/}" ]] && { echo -e "Files database is out of date\nSyncing now..."; sudo pacman -Fy; } }