我试图设置一个脚本来下载构建版本的脚本并将其解压缩,但是出于某种令人发狂的原因tar
,它似乎变得疯狂了,它不断尝试使用一些已久的文件夹来做某事。
最初我试图
curl -L http://www.example.com/tehcodez.tar.gz | tar -C assets -xz
而且我遇到了一个令人困惑的错误...所以我将其简化为tar x
(实际上不应该做任何事情,但至少不会像它那样死掉),我得到了真正莫名其妙的错误:
nick@cody:~/Projects/Website/
$ tar x
tar: ~/Projects/Tape-Worms/: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
...Tape-Worms
一些旧的项目我工作(和文件夹不再存在),我不知道怎么tar
拉这条道路无中生有,然后b)窒息它是)。它不管什么文件夹我,我/
,~
我得到确切同样的错误。
tar
显然使用该变量TAPE
作为默认文件路径,我将其设置为违规~/Projects/Tape-Worms/
以.bashrc
获取快捷方式。自然。
ENVIRONMENT
The behavior of tar is controlled by the following environment variables, among
others:
TAPE Device or file to use for the archive if --file is not specified. If
this environment variable is unset, use stdin or stdout instead.
所以:
$ unset TAPE
$ tar x
^C
$
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句