Skip to content

Commit abfa82b

Browse files
committed
Add repository setup script
1 parent 04c29fd commit abfa82b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

install_repo.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
fi
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

Comments
 (0)