tools/check_for_upgrade: output message on a lock acquisition failure

This commit is contained in:
Koichi Murase 2024-05-01 21:36:07 +09:00
parent 45a0b4d1e7
commit ed0320211a

View File

@ -52,4 +52,9 @@ type -P git &>/dev/null || return 0
if command mkdir "$OSH/log/update.lock" 2>/dev/null; then
_omb_upgrade_check
command rmdir "$OSH"/log/update.lock
else
printf '%s\n' \
'oh-my-bash/check_for_updgrade: Failed to get a lock. Please make sure that no' \
'other process is trying to update Oh My Bash and remove' \
'"'"$OSH"'/log/update.lock"' >&2
fi