mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 05:40:05 +08:00
Add prompts in install.cmd
This commit is contained in:
parent
95b789653f
commit
195b49622e
@ -27,17 +27,26 @@ if (!(echo $?)) {
|
|||||||
echo ">>> Ready to Exit......"
|
echo ">>> Ready to Exit......"
|
||||||
Pause
|
Pause
|
||||||
exit
|
exit
|
||||||
|
} else {
|
||||||
|
echo "[OK] Test successfully. Moving to next..."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|
||||||
echo "==> Testing vim"
|
echo "==> Testing vim"
|
||||||
vim --version
|
gvim --version
|
||||||
if (!(echo $?)) {
|
if (!(echo $?)) {
|
||||||
echo "[ERROR] Please install gvim or make your PATH correctly set! "
|
echo "[WARNING] You didn't install gvim or vim. But intallation can still continue..."
|
||||||
echo ">>> Ready to Exit......"
|
echo ""
|
||||||
|
echo "[WARNING] Please install gvim later or make your PATH correctly set! "
|
||||||
Pause
|
Pause
|
||||||
exit
|
} else {
|
||||||
|
echo ($(gvim --version) -split '\n')[0]
|
||||||
|
echo "[OK] Test successfully. Moving to next..."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|
||||||
if (!(Test-Path "$HOME\.SpaceVim")) {
|
if (!(Test-Path "$HOME\.SpaceVim")) {
|
||||||
echo "==> Trying to clone $app_name"
|
echo "==> Trying to clone $app_name"
|
||||||
git clone $repo_url $repo_path
|
git clone $repo_url $repo_path
|
||||||
|
Loading…
Reference in New Issue
Block a user