Skip to content

Commit 096c72d

Browse files
committed
Show message when restarting dotfiles script.
1 parent 58a4140 commit 096c72d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/dotfiles

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ elif [[ "$1" != "restart" ]]; then
274274
prev_head="$(git rev-parse HEAD)"
275275
git pull
276276
git submodule update --init --recursive --quiet
277-
[[ "$(git rev-parse HEAD)" != "$prev_head" ]] && exec "$0" "restart"
277+
if [[ "$(git rev-parse HEAD)" != "$prev_head" ]]; then
278+
e_header "Changes detected, restarting script"
279+
exec "$0" "restart"
280+
fi
278281
fi
279282

280283
# Add binaries into the path

0 commit comments

Comments
 (0)