#!/bin/bash
mkdir /tmp
curl -O http://www.mucommander.com/download/nightly/mucommander-current.app.tar.gz /tmp/mucommander.tgz
tar -xvzf /tmp/mucommander.tgz */mucommander.app/*
cp -r /tmp/mucommander.app /Applications
rm -r /tmp
Mac のアプリケーション ディレクトリに muCommander をダウンロードして展開するためのシェル スクリプトを作成しようとしています。
tmp ディレクトリに cd しようとしましたが、そうするとスクリプトが停止します。-C 引数を使用してすべてを抽出できますが、現在の tgz パスは muCommander-0_9_0/mucommander.app であり、後のビルドで変更される可能性があるため、一般的なものにしようとしています。
誰かが私が間違っている場所を教えてもらえますか?
前もって感謝します。