[FIXED] Error en nombred de binario de sops

This commit is contained in:
Mauro Rosero P. 2024-12-08 16:23:44 -05:00
parent 9c7192ed0d
commit 09b233e461

View file

@ -18,7 +18,7 @@
# junto con este programa. Si no la recibió, consulte <https://www.gnu.org/licenses/>. # junto con este programa. Si no la recibió, consulte <https://www.gnu.org/licenses/>.
SOPS_VERSION=v3.9.2 SOPS_VERSION=3.9.2
# Install python3 package # Install python3 package
function python3_install() { function python3_install() {
@ -66,24 +66,32 @@ function sops_install() {
case $arch in case $arch in
x86_64) x86_64)
# Download the binary # 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 if [ $? -eq 0 ]; then
# Move the binary in to your PATH # Move the binary in to your PATH
mv sops-v$SOPS_VERSION.linux.amd64 /usr/local/bin/sops mv sops-v$SOPS_VERSION.linux.amd64 /usr/local/bin/sops
# Make the binary executable if [ $? -eq 0 ]; then
chmod +x /usr/local/bin/sops # Make the binary executable
chmod a+x /usr/local/bin/sops
else
return 1
fi
else else
return 1 return 1
fi fi
;; ;;
arm*) arm*)
# Download the binary # 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 if [ $? -eq 0 ]; then
# Move the binary in to your PATH # Move the binary in to your PATH
mv sops-v$SOPS_VERSION.linux.arm64 /usr/local/bin/sops mv sops-v$SOPS_VERSION.linux.arm64 /usr/local/bin/sops
# Make the binary executable if [ $? -eq 0 ]; then
chmod +x /usr/local/bin/sops # Make the binary executable
chmod a+x /usr/local/bin/sops
else
return 1
fi
else else
return 1 return 1
fi fi