Updated if update running

This commit is contained in:
2019-06-11 09:29:25 +02:00
parent 4d87c0bde9
commit 703c0e8182

View File

@@ -96,7 +96,7 @@ _check_date() {
local old_date=`cat ~/.config/dotfiles/.data/update_date`
local new_date=`date $1`
if [ "$new_date" != "$old_date" ]; then
if [ "$new_date" != "$old_date" ] && [ ! -f ~/.config/dotfiles/.data/update_lock ]; then
_sentence not_updated
elif [ "$UPDATE_CHECK_ALWAYS" = "true" ] || [ "$2" = "force" ]; then
_sentence updated