Update 3 files

- /README.md
- /Install.sh
- /RemoteInstall.sh
This commit is contained in:
octt
2023-05-17 14:31:25 +00:00
parent f7f581ddb6
commit ac6caf5fb9
3 changed files with 36 additions and 2 deletions

19
RemoteInstall.sh Normal file
View File

@ -0,0 +1,19 @@
#!/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"