forked from obel1x/fedora-OEMDRV
13 lines
486 B
Bash
Executable File
13 lines
486 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# SPDX-FileCopyrightText: Daniel Pätzold
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#
|
|
# Fetches the installfile from a repository and runs it
|
|
#
|
|
REPO_URL="${1:-https://gitea.dtext.online/obel1x/fedora-OEMDRV.git}"
|
|
REPO_BRANCH="${2:-main}"
|
|
|
|
SCRIPTURL="${REPO_URL%.git}/raw/branch/${REPO_BRANCH}/system_setup/install.sh"
|
|
echo "Fetching from ${SCRIPTURL} and running script with sudo"
|
|
curl -fsSL ${SCRIPTURL} -o /tmp/install.sh && sudo bash /tmp/install.sh ${REPO_URL}
|