当我输入时unzip ../founation-latest.zip
,它输出:
警告 [../foundation-latest.zip]:开头或 zipfile 中的 248 个额外字节(无论如何都在尝试处理)
该文件为 138KB。它可以正确解压缩,但为什么会出现此错误?
我不确定我是否问对了,但这里是脚本:
#!/bin/sh
# foundation-setup.sh --- Gets the latest Zurb Foundation release
if test $1
then
mkdir $*
cd $*
wget -q http://foundation.zurb.com/cdn/releases/foundation-latest.zip
unzip -q foundation-latest.zip
rm foundation-latest.zip
else
echo 'Missing directory Argument!'
fi
Run Code Online (Sandbox Code Playgroud)
当我用 运行它时./foundation-setup.sh a b c
,它可以工作,但它只解压缩到第一个目录参数。我认为这与cd $*
. 顺便说一下,我是 Linux 和 Bash 的新手。