From 1ca635ca960fdcb06130c1a184b19b602a807408 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 30 Nov 2021 20:52:03 -0300 Subject: [PATCH] aria2-feeder: forzar bash --- archivador.sh | 4 ++++ aria2-feeder/feed-aria2.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/archivador.sh b/archivador.sh index 712f8e9..cd53c5d 100755 --- a/archivador.sh +++ b/archivador.sh @@ -1,5 +1,9 @@ #!/bin/sh -e +if ! type bash > /dev/null; then + echo "Te falta instalar aria2." + exit 1 +fi if ! type aria2c > /dev/null; then echo "Te falta instalar aria2." exit 1 diff --git a/aria2-feeder/feed-aria2.sh b/aria2-feeder/feed-aria2.sh index d26dff8..69461cf 100755 --- a/aria2-feeder/feed-aria2.sh +++ b/aria2-feeder/feed-aria2.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e params=$(echo -n "[[\"$1\"],{\"header\":[\"accept-encoding: gzip, br\"]}]" | base64 -w0) id=$(echo "$RANDOM * $RANDOM" | bc)