Skip to content

Commit

Permalink
Update 1click.install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanVBW authored Dec 14, 2024
1 parent a3ab0ad commit ba0b456
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions 1click.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ pkg install wget figlet curl -y

# Download and Prepare Scripts
echo -e "\e[1m\e[34mDownloading LinuxDroid menu script...\e[0m"
curl -O https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/LinuxDroidmenu.sh
curl -O https://github.com/AryanVBW/LinuxDroid/releases/download/scripts/LinuxDroidmenu.sh
if [[ ! -f LinuxDroidmenu.sh ]]; then
echo -e "\e[31mError: Failed to download LinuxDroid menu script.\e[0m"
exit 1
fi
chmod +x LinuxDroidmenu.sh

echo -e "\e[1m\e[34mDownloading default bashrc...\e[0m"
wget https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/default.bashrc && chmod +x default.bashrc
wget https://github.com/AryanVBW/LinuxDroid/releases/download/A1/default.bashrc && chmod +x default.bashrc

# Backup and replace existing .bashrc
echo -e "\e[1m\e[34mBacking up and replacing existing .bashrc...\e[0m"
Expand All @@ -105,13 +105,17 @@ rm -rf .bashrc && cp default.bashrc .bashrc

# Download and Run LinuxDroid Script
echo -e "\e[1m\e[34mDownloading and running LinuxDroid script...\e[0m"
curl -O https://raw.githubusercontent.com/AryanVBW/LinuxDroid/refs/heads/main/LinuxDroid.sh
curl -O https://github.com/AryanVBW/LinuxDroid/releases/download/scripts/LinuxDroid.sh
if [[ ! -f LinuxDroid.sh ]]; then
echo -e "\e[31mError: Failed to download LinuxDroid script.\e[0m"
exit 1
fi
chmod +x LinuxDroid.sh
bash LinuxDroid.sh

# Execute LinuxDroidmenu.sh
echo -e "\e[1m\e[34mExecuting LinuxDroid menu...\e[0m"
chmod +x LinuxDroidmenu.sh && ./LinuxDroidmenu.sh

# Installation Complete Message
echo -e "\e[1m\e[32mInstallation completed! Run ./LinuxDroidmenu.sh to start.\e[0m"
echo -e "\e[1m\e[32mInstallation completed! LinuxDroid menu script has been executed automatically.\e[0m"

0 comments on commit ba0b456

Please sign in to comment.