ibnstaller

This commit is contained in:
2025-11-01 18:21:24 -06:00
parent b0ff66a271
commit bfa09ade00
+6 -6
View File
@@ -1,10 +1,12 @@
#!/bin/bash #!/bin/bash
# install without upfate and package install # install without upfate and package install
## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && sudo $SHELL -c "$script" && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL ## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && sudo $SHELL -c $script && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL
# install with package install # install with package install
## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && sudo $SHELL -c "$script full" && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL ## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && sudo $SHELL -c "$script full" && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL
# set -e # make sure da silly thing dont continue when there be errorZ # set -e # make sure da silly thing dont continue when there be errorZ
# configs
gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git' gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git'
tmpDir='/tmp/generalssss' tmpDir='/tmp/generalssss'
tmp_customscripts_dir="$tmpDir/customscripts" tmp_customscripts_dir="$tmpDir/customscripts"
@@ -41,7 +43,6 @@ 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
@@ -77,7 +78,7 @@ fi
# clean up any existing install # clean up any existing install
if [[ -d "$finalDir" ]]; then if [[ -d "$finalDir" ]]; then
echo "Cleaning Up Existing $finalDir" echo "Cleaning Up Existing $finalDir"
rm -rf "$finalDir" sudo rm -rf "$finalDir"
else else
echo "$finalDir not found, will create" echo "$finalDir not found, will create"
fi fi
@@ -104,7 +105,6 @@ sudo chmod -R 775 "$finalDir"
# check if $finalDir is in $rcfile # check if $finalDir is in $rcfile
grep -q $finalDir $rcfile grep -q $finalDir $rcfile
pathgrep=$? pathgrep=$?
if [ $pathgrep -eq 0 ]; then if [ $pathgrep -eq 0 ]; then
echo "$finalDir Already in \$PATH Skipping" echo "$finalDir Already in \$PATH Skipping"
else else
@@ -145,8 +145,8 @@ else
fi fi
# copy rice if not present # copy rice if not present
if [ ! -d $userhome/rice ]; then if [ ! -d $userhome/Rice ]; then
mv $tmpDir/rice $userhome mv $tmpDir/Rice $userhome
else else
echo "Rice found not copying again" echo "Rice found not copying again"
fi fi