Now script requires zsh

master
Plaza521 2023-10-27 16:52:42 +03:00
parent 92cf0b3fcf
commit 06da1556c4
Signed by untrusted user who does not match committer: nakidai
GPG Key ID: 914675D395210A97
1 changed files with 5 additions and 1 deletions

View File

@ -1,10 +1,14 @@
#!/bin/sh
# Check if git installed
# Check if necessary things are installed
if ! command -v git &> /dev/null; then
echo "This script requires git"
exit 1
fi
if ! command -v zsh &> /dev/null; then
echo "This script requires zsh"
exit 1
fi
# Asking if user really want to install
read -p 'This script will install oh my zsh and replace .zshrc with its own. If you still want to run it, type "y": ' -n 1 -r