Now script requires zsh
parent
92cf0b3fcf
commit
06da1556c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue