[FIXED] Error en nombred de binario de sops
This commit is contained in:
parent
9c7192ed0d
commit
09b233e461
1 changed files with 15 additions and 7 deletions
|
@ -18,7 +18,7 @@
|
|||
# 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
|
||||
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
|
||||
if [ $? -eq 0 ]; then
|
||||
# Make the binary executable
|
||||
chmod +x /usr/local/bin/sops
|
||||
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
|
||||
if [ $? -eq 0 ]; then
|
||||
# Make the binary executable
|
||||
chmod +x /usr/local/bin/sops
|
||||
chmod a+x /usr/local/bin/sops
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue