forked from obel1x/fedora-OEMDRV
Add install_from_repo.sh
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/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}
|
||||
Reference in New Issue
Block a user