mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-04-11 07:15:31 +00:00
kernel still breaking. updated name which may have been issue
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -oue pipefail
|
||||
|
||||
GITHUB_URL="https://github.com/somepaulo/MoreWaita"
|
||||
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"
|
||||
fi
|
||||
|
||||
echo "Folders copied. Cleaning up!"
|
||||
rm -drf "$CLONE_DIR"
|
||||
echo "Cloned repo deleted."
|
||||
|
||||
echo "Script finished. Theme installation complete."
|
||||
|
||||
|
||||
# ---
|
||||
# echo 'Preparing directory for cloning...'
|
||||
|
||||
# mkdir -p /tmp/clone/MoreWaita/
|
||||
# cd /tmp/clone/MoreWaita/
|
||||
# echo 'Directory created.'
|
||||
|
||||
# git clone https://github.com/somepaulo/MoreWaita.git
|
||||
# echo 'Repo cloned. Running install script...'
|
||||
|
||||
# MoreWaita/install.sh
|
||||
# cho 'Install script finished. Removing cloned repo...'
|
||||
|
||||
# rm -r MoreWaita
|
||||
# echo 'Cloned repo deleted.'
|
||||
Reference in New Issue
Block a user