mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Update 3 files
- /README.md - /Install.sh - /RemoteInstall.sh
This commit is contained in:
19
RemoteInstall.sh
Normal file
19
RemoteInstall.sh
Normal 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"
|
Reference in New Issue
Block a user