mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Suppress more errors.
This commit is contained in:
@@ -4,7 +4,7 @@ set nounset
|
|||||||
set errexit
|
set errexit
|
||||||
|
|
||||||
function prerequisites {
|
function prerequisites {
|
||||||
if which zsh > /dev/null ; then
|
if which zsh > /dev/null 2>&1 ; then
|
||||||
if [[ $- == *i* ]] ; then
|
if [[ $- == *i* ]] ; then
|
||||||
if [[ `getent passwd $USER | cut -d: -f7` != */zsh ]] ; then
|
if [[ `getent passwd $USER | cut -d: -f7` != */zsh ]] ; then
|
||||||
echo 'Enter password to change shell.' >&2
|
echo 'Enter password to change shell.' >&2
|
||||||
@@ -15,12 +15,12 @@ function prerequisites {
|
|||||||
else
|
else
|
||||||
echo "ZSH not found!" >&2
|
echo "ZSH not found!" >&2
|
||||||
fi
|
fi
|
||||||
if which vim > /dev/null ; then
|
if which vim > /dev/null 2>&1 ; then
|
||||||
mkdir -p $HOME/.vim/bundle
|
mkdir -p $HOME/.vim/bundle
|
||||||
install_git https://github.com/VundleVim/Vundle.vim.git \
|
install_git https://github.com/VundleVim/Vundle.vim.git \
|
||||||
$HOME/.vim/bundle/Vundle.vim
|
$HOME/.vim/bundle/Vundle.vim
|
||||||
fi
|
fi
|
||||||
if which gdb > /dev/null ; then
|
if which gdb > /dev/null 2>&1 ; then
|
||||||
install_git https://github.com/longld/peda.git $HOME/.peda
|
install_git https://github.com/longld/peda.git $HOME/.peda
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user