summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/updaterepos.sh
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-09-10 15:58:24 +0200
committerFedja Beader <fedja@protonmail.ch>2023-09-10 15:58:24 +0200
commit0a2d34be04d72b8982cc2cd488f7e6432d30b40b (patch)
tree8eca42bd37a93b9eae2200133dfd7ad47024ad09 /tools/ci/scripts/updaterepos.sh
parent3f68449293de30d84e39fef761ca5a4734f99c32 (diff)
downloadmanaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.gz
manaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.bz2
manaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.xz
manaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.zip
trim useless uses of cat
Diffstat (limited to 'tools/ci/scripts/updaterepos.sh')
-rwxr-xr-xtools/ci/scripts/updaterepos.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/ci/scripts/updaterepos.sh b/tools/ci/scripts/updaterepos.sh
index 167898a83..8ac6d6c44 100755
--- a/tools/ci/scripts/updaterepos.sh
+++ b/tools/ci/scripts/updaterepos.sh
@@ -4,9 +4,8 @@ if [[ "$RUNFROMSHELL" != "" ]]; then
echo "Running from shell. Skipping update repos"
exit 0
fi
-export DATA=$(cat /etc/resolv.conf|grep "nameserver 1.10.100.101")
-echo "${DATA}"
-if [ "$DATA" != "" ]; then
+
+if grep "nameserver 1.10.100.101" /etc/resolv.conf; then
echo "Detected local runner"
sed -i 's!http://httpredir.debian.org/debian!http://1.10.100.103/debian!' /etc/apt/sources.list || true
sed -i 's!http://deb.debian.org/debian!http://1.10.100.103/debian!' /etc/apt/sources.list || true