Skip to content

Commit 9039f10

Browse files
committed
chore(scripts): Update archlinux_util.sh to disable download timeout for jq installation
1 parent dfe774c commit 9039f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/archlinux_util.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _set_and_persist() {
4040
var_name=$1
4141
var_value=$2
4242
if [ ! "$(command -v jq)" ]; then
43-
pacman -Sy --noconfirm jq
43+
pacman -Sy --noconfirm --disable-download-timeout jq
4444
fi
4545
# Persist the variable to the state file
4646
if [ -f "$_ARCH_STATE_FILE" ]; then
@@ -57,7 +57,7 @@ _get_value() {
5757
var_name=$1
5858
if [ -f "$_ARCH_STATE_FILE" ]; then
5959
if [ ! "$(command -v jq)" ]; then
60-
pacman -Sy --noconfirm jq
60+
pacman -Sy --noconfirm --disable-download-timeout jq
6161
fi
6262
value=$(jq -r --arg key "$var_name" '.[$key]' "$_ARCH_STATE_FILE" 2>/dev/null)
6363
echo "$value"

0 commit comments

Comments
 (0)