We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c29fd commit abfa82bCopy full SHA for abfa82b
install_repo.sh
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env bash
2
+set -eu
3
+
4
+if [ "${EUID}" -eq 0 ]; then
5
+ echo "This script should not be run as root."
6
+ exit 1
7
+fi
8
9
+if command -v git &> /dev/null; then :; else
10
+ echo "Git is not installed. Installing."
11
+ sudo apt-get update
12
+ sudo apt-get install git
13
14
15
+mkdir -p "${HOME}/Git"
16
+cd "${HOME}/Git"
17
+git clone "https://github.com/AgenttiX/linux-scripts.git"
18
19
+echo "Script repo ready at ${HOME}/Git/linux-scripts"
0 commit comments