PardesiScript/pardesicat.sh

93 lines
1.9 KiB
Bash
Raw Normal View History

2023-04-05 02:26:15 +05:30
#!writted by Pardesi_Cat
2022-08-21 19:57:11 +05:30
#!/bin/bash/
2023-06-03 02:46:19 +05:30
APT="/usr/bin/apt"
2023-06-04 17:39:22 +05:30
RED='\e[31m'
BLUE='\e[34m'
PURPLE='\e[35m'
REDB='\e[1;31m'
os () {
cat /etc/os-release
}
2023-04-05 02:26:15 +05:30
cat catboii
sleep 5
2023-06-04 13:34:30 +05:30
if [ -f "$APT" ] ; then
2023-06-04 17:39:22 +05:30
echo -e "${BLUE}your on debian type system with apt"
echo -e "${BLUE}starting"
2023-06-03 02:46:19 +05:30
2023-04-05 02:37:33 +05:30
echo "-------------------------------------------------"
2022-09-01 17:36:01 +05:30
echo "| |"
2023-06-04 17:39:22 +05:30
echo " Namaste : ${PURPLE}$(whoami) "
2022-09-01 17:36:01 +05:30
echo "| |"
2022-08-21 19:57:11 +05:30
echo "--------------------------------------------------"
2022-09-02 12:48:00 +05:30
sleep 2
2022-09-02 12:20:46 +05:30
2022-08-21 19:57:11 +05:30
echo "--------------------------------------------------"
2022-09-01 17:36:01 +05:30
echo " This is simple Bash script written by Pardesicat "
echo " To update and clean ur system single cmd "
2022-08-21 19:57:11 +05:30
echo "--------------------------------------------------"
2022-09-02 14:00:29 +05:30
sleep 5
echo " checking Your system Info "
sleep 2
echo "========================================================================"
2023-06-04 17:39:22 +05:30
${PURPLE}uname -a
2022-09-02 14:00:29 +05:30
echo "========================================================================"
sleep 5
2022-09-02 12:20:46 +05:30
sleep 5
2022-08-21 19:57:11 +05:30
echo "starting.........................................."
2022-09-02 14:00:29 +05:30
sleep 2
2022-08-21 19:57:11 +05:30
echo -e "\e[1;32m Step 1: Updating packages \e[0m"
2023-06-04 13:34:30 +05:30
sudo apt update -y
2022-08-21 19:57:11 +05:30
echo
echo -e "\e[1;32m Step 2: Upgrading packages \e[0m"
sudo apt upgrade -y
sudo apt update -y
echo
echo -e "\e[1;32m Step 3: Fixing Conflict Packages \e[0m"
sudo apt --fix-broken install -y
echo
echo -e "\e[1;32m Step 3: Cleaning up \e[0m"
sudo apt clean -y
sudo apt autoclean -y
sudo apt autoremove -y
2022-09-02 12:20:46 +05:30
sleep 5
2022-08-21 19:57:11 +05:30
echo "--------------------------------------------------"
2023-04-05 02:26:15 +05:30
echo " ....Done.... "
2022-08-21 19:57:11 +05:30
echo "--------------------------------------------------"
2022-09-02 12:20:46 +05:30
sleep 5
2023-06-03 02:46:19 +05:30
exit
else
2023-06-04 17:39:22 +05:30
echo -e "${PURPLE}your on other system"
echo -e "__________________________________"
os
echo -e "__________________________________"
echo -e "${REDB}closing script"
2023-06-03 02:46:19 +05:30
exit 0
fi