Fixed last-git text file location read for date calculation

This commit is contained in:
2024-03-15 08:07:44 -05:00
parent 0605b68672
commit 343981c35e

View File

@@ -53,7 +53,7 @@ if [ ! -f $HOME/.config/ArchUpdater/last-git.txt ]; then
* ) echo "Please answer yes or no.";;
esac
done
elif [ $(($(date +%s)-$(<last-git.txt))) -gt 1209600 ]; then
elif [ $(($(date +%s)-$(<$HOME/.config/ArchUpdater/last-git.txt))) -gt 1209600 ]; then
echo "It looks like it has been more than two weeks since you updated your -git AUR packages"
while true; do
read -p "Would you like to do so now? (y/n) " yn