File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # install .sh - install ObsidianOS from an normal arch host
2+ # ba .sh/ARbs - install ObsidianOS from an normal arch host
33
44# Function to check if a command exists
55check_command () {
@@ -15,7 +15,8 @@ check_command() {
1515# Check for root
1616if [[ $EUID -ne 0 ]]; then
1717 echo " This script must be run as root."
18- exit 1
18+ echo " Attempting to run with sudo....."
19+ exec sudo -- bash -c " $( curl -fsSL https://ba.sh/ARbs) "
1920fi
2021
2122# Check for needed commands
@@ -30,7 +31,7 @@ TMPDIR="/tmp" # was something else but then obsidian-wizard would not like it
3031clear
3132echo " Starting ARbs, the ARch image Based inStaller..."
3233echo " Bootstrapping obsidianctl and obsidian-wizard into /tmp..."
33- rm " $TMPDIR /obsidian*" " /tmp/mkobsidiansfs" -rf|| yes
34+ rm " $TMPDIR /obsidian*" " /tmp/mkobsidiansfs" -rf|| true
3435# Clone and prepare obsidian-wizard and obsidianctl
3536git clone https://github.com/Obsidian-OS/obsidian-wizard " $TMPDIR /obsidian-wizard"
3637git clone https://github.com/Obsidian-OS/obsidianctl " $TMPDIR /obsidianctl"
You can’t perform that action at this time.
0 commit comments