Can';不要使用任何Magento贴片

Can';不要使用任何Magento贴片,magento,patch,Magento,Patch,我在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

我在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"`

您缺少
,该
util。你必须弄清楚如何在你当前的平台上安装它。你想在什么基础操作系统上运行它?如果是Linux,是什么发行版?
which
命令用于确定命令
cat
patch
sed
pwd
的位置。它丢失了,这表明安装了大量精简的*nix或Windows环境。如果您使用的是Windows,这可能会有所帮助: