ibnstaller
This commit is contained in:
@@ -39,6 +39,7 @@ fi
|
|||||||
userhome=/home/$username
|
userhome=/home/$username
|
||||||
|
|
||||||
# figure oot da sehell
|
# figure oot da sehell
|
||||||
|
|
||||||
if [[ "$SHELL" =~ bash$ ]]; then
|
if [[ "$SHELL" =~ bash$ ]]; then
|
||||||
rcfile="$userhome/.bashrc"
|
rcfile="$userhome/.bashrc"
|
||||||
elif [[ "$SHELL" =~ zsh$ ]]; then
|
elif [[ "$SHELL" =~ zsh$ ]]; then
|
||||||
@@ -107,6 +108,8 @@ if [ ! -f /usr/local/bin/pishrink ]; then
|
|||||||
mv pishrink.sh pishrink
|
mv pishrink.sh pishrink
|
||||||
chmod +x pishrink
|
chmod +x pishrink
|
||||||
sudo mv pishrink /usr/local/bin
|
sudo mv pishrink /usr/local/bin
|
||||||
|
else
|
||||||
|
echo "Pishrink already installed, skipping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install ble.sh if not there
|
# install ble.sh if not there
|
||||||
@@ -118,6 +121,8 @@ if [ ! -d $userhome/.local/share/blesh ]; then
|
|||||||
echo "source -- $userhome/.local/share/blesh/ble.sh" >> $rcfile
|
echo "source -- $userhome/.local/share/blesh/ble.sh" >> $rcfile
|
||||||
source $rcfile
|
source $rcfile
|
||||||
exec "$SHELL"
|
exec "$SHELL"
|
||||||
|
else
|
||||||
|
echo "ble.sh already installed, skippping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# appeend thefuck to rcfile if not present
|
# appeend thefuck to rcfile if not present
|
||||||
@@ -125,10 +130,16 @@ grep -q thefuck $rcfile
|
|||||||
thefuck_present=$?
|
thefuck_present=$?
|
||||||
if [ $thefuck_present -ne 0 ]; then
|
if [ $thefuck_present -ne 0 ]; then
|
||||||
echo -e "# thefuck\neval \$(thefuck --alias fuck)" >> $rcfile
|
echo -e "# thefuck\neval \$(thefuck --alias fuck)" >> $rcfile
|
||||||
|
else
|
||||||
|
echo "thefuck is already in $rcfile, skipping"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# copy rice
|
# copy rice if not present
|
||||||
mv $tmpDir/rice /home/$username/
|
if [ ! -d $userhome/rice ]; then
|
||||||
|
mv $tmpDir/rice $userhome
|
||||||
|
else
|
||||||
|
echo "Rice found not copying again"
|
||||||
|
fi
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
## installer
|
## installer
|
||||||
@@ -141,6 +152,8 @@ rm -f "$tmp_customscripts_dir/donut.c"
|
|||||||
|
|
||||||
if [ ! -z "$1" ]; then
|
if [ ! -z "$1" ]; then
|
||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
|
echo "rebooting in 3 minutes"
|
||||||
|
sudo shutdown -r +3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Done with first stage"
|
echo "Done with first stage"
|
||||||
Reference in New Issue
Block a user