chore(default-flatpaks): Fix outdated code comment
This commit is contained in:
parent
95c17dcc23
commit
f5d1e74361
2 changed files with 4 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Check for available internet connection before proceeding (network-online.target doesn't work for some network connections)
|
# 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
|
# Used when adding remotes & when installing flatpaks
|
||||||
check_internet_connection() {
|
check_internet_connection() {
|
||||||
local max_attempts=5
|
local max_attempts=5
|
||||||
|
|
@ -125,8 +125,7 @@ done
|
||||||
|
|
||||||
# Set up system-wide Flatpak repository
|
# Set up system-wide Flatpak repository
|
||||||
if [[ $REPO_URL != "null" && $REPO_NAME != "null" ]]; then
|
if [[ $REPO_URL != "null" && $REPO_NAME != "null" ]]; then
|
||||||
echo "Adding system-wide remote $REPO_NAME from $REPO_URL (requires internet)"
|
echo "Adding system-wide remote $REPO_NAME from $REPO_URL if it doesn't exist (requires internet)"
|
||||||
echo "Note that --if-not-exists flag doesn't prevent the repo from modifying repo URL"
|
|
||||||
check_internet_connection
|
check_internet_connection
|
||||||
if "${internet_connection}"; then
|
if "${internet_connection}"; then
|
||||||
echo "Internet connection is successful, applying the operation above"
|
echo "Internet connection is successful, applying the operation above"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Check for available internet connection before proceeding (network-online.target doesn't work for some network connections)
|
# 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
|
# Used when adding remotes & when installing flatpaks
|
||||||
check_internet_connection() {
|
check_internet_connection() {
|
||||||
local max_attempts=5
|
local max_attempts=5
|
||||||
|
|
@ -112,8 +112,7 @@ done
|
||||||
|
|
||||||
# Set up per-user Flatpak repository
|
# Set up per-user Flatpak repository
|
||||||
if [[ $REPO_URL != "null" && $REPO_NAME != "null" ]]; then
|
if [[ $REPO_URL != "null" && $REPO_NAME != "null" ]]; then
|
||||||
echo "Adding user-wide remote $REPO_NAME from $REPO_URL (requires internet)"
|
echo "Adding user-wide remote $REPO_NAME from $REPO_URL if it doesn't exist (requires internet)"
|
||||||
echo "Note that --if-not-exists flag doesn't prevent the repo from modifying repo URL"
|
|
||||||
check_internet_connection
|
check_internet_connection
|
||||||
if "${internet_connection}"; then
|
if "${internet_connection}"; then
|
||||||
echo "Internet connection is successful, applying the operation above"
|
echo "Internet connection is successful, applying the operation above"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue