install.sh: will prompt version

This commit is contained in:
xiongdian.me 2023-01-18 23:13:36 +08:00
parent 86a3a1ca97
commit 0a602e5260
2 changed files with 2 additions and 0 deletions

View File

@ -292,6 +292,7 @@ uninstall()
fmt_note "done uninstalling!" fmt_note "done uninstalling!"
} }
echo "this is the dotfiles installer, version $(cd "$DOTFILES" && git describe --tags --always --dirty)"
FUNC=install FUNC=install
INSTALL_DEP=0 INSTALL_DEP=0
store_config=0 store_config=0

View File

@ -45,6 +45,7 @@ for u in "${DFS_USERS[@]}";do
echo "install for user $u in 3 seconds ..." echo "install for user $u in 3 seconds ..."
sleep 3 sleep 3
$SUCMD<<EOF $SUCMD<<EOF
set -e
cd cd
if [[ ! -f ~/dotfiles/install.sh ]];then if [[ ! -f ~/dotfiles/install.sh ]];then
git clone ${repo} git clone ${repo}