Skip to content

Commit c3eaa3a

Browse files
authored
Update and rename style.sh to configure.sh
1 parent 50636a1 commit c3eaa3a

2 files changed

Lines changed: 21 additions & 26 deletions

File tree

configure.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
if [ "$(id -u)" -eq 0 ]; then
3+
echo "You are root, please run this script as a non-root user."
4+
exit 1
5+
fi
6+
echo "Branding ObsidianOS..."
7+
sudo curl -fL https://obsidianos.xyz/os-release -o /etc/os-release
8+
echo "Branding /etc/issue..."
9+
sudo curl -fL https://obsidianos.xyz/issue -o /etc/issue
10+
echo "Attempting to add ObsidianOS branding packages..."
11+
if command -v yay >/dev/null 2>&1; then
12+
echo "Found yay"
13+
yay -S obsidianos-branding obos-genissue-git --overwrite '*' --noconfirm --needed
14+
fi
15+
echo "Attempting to add obsidianctl..."
16+
if command -v yay >/dev/null 2>&1; then
17+
echo "Found yay"
18+
yay -S obsidianctl-git --overwrite '*' --noconfirm --needed
19+
fi
20+
echo "Done!"
21+
echo "If using Arch based ObsidianOS install the AUR package obos-genissue-git."

style.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)