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