Files
miasma-os/docs/solarpowered-main/files/scripts/shared/qogir-icon-theme.sh
2026-04-09 16:33:56 +10:00

33 lines
702 B
Bash

#!/usr/bin/env bash
set -oue pipefail
GITHUB_URL="https://github.com/vinceliuice/Qogir-icon-theme"
if [ -z "$GITHUB_URL" ]; then
echo "Error: GITHUB_URL is not set."
exit 1
fi
REPO_NAME=$(basename "$GITHUB_URL" .git)
CLONE_DIR="/tmp/clone/$REPO_NAME"
echo "Preparing directory for cloning..."
mkdir -p "$CLONE_DIR"
cd "$CLONE_DIR"
echo "Directory created."
git clone "$GITHUB_URL"
echo "Repo cloned. Copying files..."
if [ -f "./$REPO_NAME/install.sh" ]; then
chmod +x "./$REPO_NAME/install.sh"
./"$REPO_NAME/install.sh" -t default -c standard
fi
echo "Folders copied. Cleaning up!"
rm -drf "$CLONE_DIR"
echo "Cloned repo deleted."
echo "Script finished. Theme installation complete."