chore(default-flatpaks): Fix outdated code comment

This commit is contained in:
fiftydinar 2024-10-23 18:47:16 +02:00 committed by GitHub
parent 95c17dcc23
commit f5d1e74361
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Check for available internet connection before proceeding (network-online.target doesn't work for some network connections)
# Check it 3 times in 3 second interval, to avoid until loop
# Check it 5 times in 3 second interval, to avoid until loop
# Used when adding remotes & when installing flatpaks
check_internet_connection() {
local max_attempts=5
@ -125,8 +125,7 @@ done
# Set up system-wide Flatpak repository
if [[ $REPO_URL != "null" && $REPO_NAME != "null" ]]; then
echo "Adding system-wide remote $REPO_NAME from $REPO_URL (requires internet)"
echo "Note that --if-not-exists flag doesn't prevent the repo from modifying repo URL"
echo "Adding system-wide remote $REPO_NAME from $REPO_URL if it doesn't exist (requires internet)"
check_internet_connection
if "${internet_connection}"; then
echo "Internet connection is successful, applying the operation above"

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Check for available internet connection before proceeding (network-online.target doesn't work for some network connections)
# Check it 3 times in 3 second interval, to avoid until loop
# Check it 5 times in 3 second interval, to avoid until loop
# Used when adding remotes & when installing flatpaks
check_internet_connection() {
local max_attempts=5
@ -112,8 +112,7 @@ done
# Set up per-user Flatpak repository
if [[ $REPO_URL != "null" && $REPO_NAME != "null" ]]; then
echo "Adding user-wide remote $REPO_NAME from $REPO_URL (requires internet)"
echo "Note that --if-not-exists flag doesn't prevent the repo from modifying repo URL"
echo "Adding user-wide remote $REPO_NAME from $REPO_URL if it doesn't exist (requires internet)"
check_internet_connection
if "${internet_connection}"; then
echo "Internet connection is successful, applying the operation above"