提交 28a69eea 作者: Stephan Kulla

install.sh: Treat $binpath as target directory.

In case $binpath/$bin is an already existing directory, the command

    mv "$bin" "$binpath/$bin"

would store the binary in the place $binpath/$bin/$bin. I guess this is
not the expected behavior. Therefore I used the -t option of `mv' to
specify the target directory explicitly.

License: MIT
Signed-off-by: 's avatarStephan Kulla <git.mail@kulla.me>
上级 fc20fe87
......@@ -9,7 +9,7 @@ binpaths="/usr/local/bin /usr/bin"
for binpath in $binpaths; do
if [ -d "$binpath" ]; then
mv "$bin" "$binpath/$bin"
mv -t "$binpath" "$bin"
echo "installed $binpath/$bin"
exit 0
fi
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论