Fixed last-git text file location read for date calculation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user