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)