cancel
Showing results for 
Search instead for 
Did you mean: 

Security Patch SUPEE-1533 error install SSH

SOLVED

Security Patch SUPEE-1533 error install SSH

Hi guys,
I can not install the patch SUPEE 1533, on my development server, when I type (ssh):

sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh

 

I get the following error:

: command not found_1.13.x_v1-2015-02-10-08-18-32.sh: line 7:
'ATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh: line 9: syntax error near unexpected token `{
'ATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh: line 9: `_check_installed_tools() {


I can't find the solution. Can you help me, thanks in advance!
I do not speak well English

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Security Patch SUPEE-1533 error install SSH

Is your development server running on Linux?

 

Line 7 is blank

 

You've somehow uploaded the file to Linux with CRLF line endings which cases the shell to complain.

 

Run the file through dos2unix to convert the line endings to LF which is what the Linux shell expects.

 

#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.

# 1. Check required system tools
_check_installed_tools() {
    local missed=""

    until [ -z "$1" ]; do
        type -t $1 >/dev/null 2>/dev/null
        if (( $? != 0 )); then
            missed="$missed $1"
        fi
        shift
    done

    echo $missed
}

View solution in original post

3 REPLIES 3

Re: Security Patch SUPEE-1533 error install SSH

Is your development server running on Linux?

 

Line 7 is blank

 

You've somehow uploaded the file to Linux with CRLF line endings which cases the shell to complain.

 

Run the file through dos2unix to convert the line endings to LF which is what the Linux shell expects.

 

#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.

# 1. Check required system tools
_check_installed_tools() {
    local missed=""

    until [ -z "$1" ]; do
        type -t $1 >/dev/null 2>/dev/null
        if (( $? != 0 )); then
            missed="$missed $1"
        fi
        shift
    done

    echo $missed
}

Re: Security Patch SUPEE-1533 error install SSH

Hello @fabrizionew

 

If you are unable to patch using SSH method, you can try other ways of installing patches from our blog,

http://magecomp.com/blog/how-to-install-magento-security-patches/

 

 

SECURITY DISCLAIMER: The above website contains Magento Security Patch files which are self-hosted by the user and as such unsafe. Magento Forum advise all users to only download patch files from the official Magento Downloads page. 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Security Patch SUPEE-1533 error install SSH

Thanks it seems to work perfectly!

Fabrizio