mirror of
https://gitlab.com/octospacc/Configs.git
synced 2024-12-22 20:48:00 +01:00
20 lines
458 B
Bash
20 lines
458 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
[ -z "$(which git)" ] \
|
||
|
&& echo "Missing tools. Install \`git\`." \
|
||
|
&& exit 1
|
||
|
|
||
|
[ "$(whoami)" = "root" ] \
|
||
|
&& echo "Running as root; copying system files."
|
||
|
|
||
|
[ "$(whoami)" != "root" ] \
|
||
|
&& echo "Running as user; only copying home files."
|
||
|
|
||
|
true \
|
||
|
&& git clone --depth 1 "https://gitlab.com/octospacc/Configs" \
|
||
|
&& cd ./Configs \
|
||
|
&& echo "Which install target?" \
|
||
|
&& echo "(Available: $(ls -d */))" \
|
||
|
&& read Target \
|
||
|
&& sh ./Install.sh "$Target"
|