Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Update penguinfox-installer.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pznguin-kyun authored Sep 25, 2023
1 parent 67970c5 commit cfda7d2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions penguinfox-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ ! -d "$backup_folder" ]; then
mkdir -p "$backup_folder"
fi

for folder in chrome extensions; do
for folder in chrome; do
if [ -d "$HOME"/.mozilla/firefox/*.default-release/$folder ]; then
mv "$HOME"/.mozilla/firefox/*.default-release/$folder "$backup_folder"/${folder}_$date
echo "$folder folder backed up successfully at $backup_folder/${folder}_$date"
Expand All @@ -66,8 +66,8 @@ done
logo "Installing penguinFox..."
printf "Copying files to respective directories..\n"

for archivos in ~/penguinFox/*; do
cp -R "${archivos}" ~/.mozilla/firefox/*.default-release/
for archivos in /chrome/*; do
cp -R "${archivos}" ~/.mozilla/firefox/*.default-release/chrome/
if [ $? -eq 0 ]; then
printf "%s%s%s folder copied succesfully!%s\n" "${BLD}" "${CGR}" "${archivos}" "${CNC}"
sleep 1
Expand All @@ -77,9 +77,18 @@ for archivos in ~/penguinFox/*; do
fi
done

# Removing unused files
logo "Removing unused files..."
rm -rf ~/.mozilla/firefox/*.default-release/.git ~/.mozilla/firefox/*.default-release/.github ~/.mozilla/firefox/*.default-release/penguinfox-installer.sh ~/.mozilla/firefox/*.default-release/README.md
for archivos in /extensions/*; do
cp -R "${archivos}" ~/.mozilla/firefox/*.default-release/extensions/
if [ $? -eq 0 ]; then
printf "%s%s%s folder copied succesfully!%s\n" "${BLD}" "${CGR}" "${archivos}" "${CNC}"
sleep 1
else
printf "%s%s%s failed to been copied, you must copy it manually%s\n" "${BLD}" "${CRE}" "${archivos}" "${CNC}"
sleep 1
fi
done

cp /user.js ~/.mozilla/firefox/*.default-release/

logo "Done!"
printf "Completed penguinFox installation, now open Firefox and enjoy!"

0 comments on commit cfda7d2

Please sign in to comment.