Browse Source

no more sudo

master
pvincent 5 years ago
parent
commit
cf7eedc9fc
  1. 9
      install.sh
  2. 2
      uninstall.sh

9
install.sh

@ -1,5 +1,7 @@
#!/bin/bash
[ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1
if [ ! -d /opt/debian-bash ]; then
TEMP=`mktemp -d`
cd $TEMP
@ -8,14 +10,13 @@ if [ ! -d /opt/debian-bash ]; then
tar -xzf master.tar.gz
mv debian-bash /opt/
cd /opt/debian-bash
sudo ./install.sh
./install.sh
rm -rf $TEMP
exit 0
fi
[ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1
BASEDIR=$PWD
[ ! $BASEDIR == '/opt/debian-bash' ] && echo 'should be installed in /opt/debian-bash directory' && exit 1
[ ! $BASEDIR == '/opt/debian-bash' ] && echo 'should be installed from /opt/debian-bash directory' && exit 1
ORIGINAL="ORIGINAL"
declare -a arr=(/etc/bash.bashrc /etc/inputrc /etc/vim/vimrc)

2
uninstall.sh

@ -1,7 +1,5 @@
#!/bin/bash
# https://github.com/amix/vimrc/raw/master/vimrcs/basic.vim
[ `id -u` -ne 0 ] && echo 'root privilege required' && exit 1
BASEDIR=$PWD

Loading…
Cancel
Save