diff --git a/bin/cosmocc b/bin/cosmocc index 3c9f907a4..a353be7b6 100755 --- a/bin/cosmocc +++ b/bin/cosmocc @@ -180,7 +180,7 @@ if [ ! -d "$COSMO" ]; then fi if [ "$1" = "--update" ]; then - cd /opt/cosmo || exit + cd $COSMO || exit if GIT=$(command -v git); then echo "running git pull on cosmo..." >&2 "$GIT" pull --quiet || exit diff --git a/bin/fatcosmocc b/bin/fatcosmocc index 97952f21b..bfba3ccc7 100755 --- a/bin/fatcosmocc +++ b/bin/fatcosmocc @@ -149,7 +149,7 @@ else fi if [ "$1" = "--update" ]; then - cd /opt/cosmo || exit + cd $COSMO || exit if GIT=$(command -v git); then echo "running git pull on cosmo..." >&2 "$GIT" pull --quiet || exit