SpectreOS/repo.sh

22 lines
650 B
Bash
Raw Normal View History

2022-10-04 19:01:31 +02:00
#!/bin/bash
set -ex
ENVLOCAL="/etc/environment"
2023-10-05 11:46:44 +02:00
export WEBADDRESS_OS="https://code.brothertec.eu/simono41/SpectreOS.git"
export WEBADDRESS_SCRIPTE="https://code.brothertec.eu/simono41/shell-scripte-code.git"
2022-10-04 19:01:31 +02:00
if grep 'WEBADDRESS_OS' $ENVLOCAL; then
sed -i 's|WEBADDRESS_OS=.*|WEBADDRESS_OS='$WEBADDRESS_OS'|' $ENVLOCAL
else
echo "WEBADDRESS_OS=${WEBADDRESS_OS}" >> $ENVLOCAL
fi
if grep 'WEBADDRESS_SCRIPTE' $ENVLOCAL; then
sed -i 's|WEBADDRESS_SCRIPTE=.*|WEBADDRESS_SCRIPTE='$WEBADDRESS_SCRIPTE'|' $ENVLOCAL
else
echo "WEBADDRESS_SCRIPTE=${WEBADDRESS_SCRIPTE}" >> $ENVLOCAL
fi
# Lese die Umgebungsvariablen neu
source /etc/environment