我在Magento安装的根文件夹中有补丁文件。我已使用bash
和sh
命令运行修补程序。一切都会导致:
$ sh stupidpatch1.sh
stupidpatch1.sh: line 32: which: command not found
stupidpatch1.sh: line 33: which: command not found
stupidpatch1.sh: line 34: which: command not found
stupidpatch1.sh: line 35: which: command not found
stupidpatch1.sh: line 36: which: command not found
stupidpatch1.sh: line 38: stupidpatch1.sh: command not found
ERROR: "/app/etc/" must exist for proper tool work.
补丁文件中这些行的代码是:
31 # 2. Determine bin path for system tools
32 CAT_BIN=`which cat`
33 PATCH_BIN=`which patch`
34 SED_BIN=`which sed`
35 PWD_BIN=`which pwd`
36 BASENAME_BIN=`which basename`
37
38 BASE_NAME=`$BASENAME_BIN "$0"`