diff --git a/bin/lib/bootstrap.lib b/bin/lib/bootstrap.lib index 5c574e7..6332b2a 100755 --- a/bin/lib/bootstrap.lib +++ b/bin/lib/bootstrap.lib @@ -18,7 +18,7 @@ # junto con este programa. Si no la recibiĆ³, consulte . -SOPS_VERSION=v3.9.2 +SOPS_VERSION=3.9.2 # Install python3 package function python3_install() { @@ -66,24 +66,32 @@ function sops_install() { case $arch in x86_64) # Download the binary - curl -LO https://github.com/getsops/sops/releases/download/v$SOPS_VERSION/sops-$SOPS_VERSION.linux.amd64 + curl -LO https://github.com/getsops/sops/releases/download/v$SOPS_VERSION/sops-v$SOPS_VERSION.linux.amd64 if [ $? -eq 0 ]; then # Move the binary in to your PATH mv sops-v$SOPS_VERSION.linux.amd64 /usr/local/bin/sops - # Make the binary executable - chmod +x /usr/local/bin/sops + if [ $? -eq 0 ]; then + # Make the binary executable + chmod a+x /usr/local/bin/sops + else + return 1 + fi else return 1 fi ;; arm*) # Download the binary - curl -LO https://github.com/getsops/sops/releases/download/v$SOPS_VERSION/sops-$SOPS_VERSION.linux.arm64 + curl -LO https://github.com/getsops/sops/releases/download/v$SOPS_VERSION/sops-v$SOPS_VERSION.linux.arm64 if [ $? -eq 0 ]; then # Move the binary in to your PATH mv sops-v$SOPS_VERSION.linux.arm64 /usr/local/bin/sops - # Make the binary executable - chmod +x /usr/local/bin/sops + if [ $? -eq 0 ]; then + # Make the binary executable + chmod a+x /usr/local/bin/sops + else + return 1 + fi else return 1 fi