mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 01:16:54 +08:00
fix windows depot path expansion (#146)
This commit is contained in:
@@ -66,7 +66,11 @@ runs:
|
||||
else
|
||||
depot="~/.julia"
|
||||
fi
|
||||
depot="${depot/#\~/$HOME}" # Expand tilde which cannot be used in BASH checks (i.e. `[ -d "~/.julia" ]` fails)
|
||||
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
|
||||
depot="${depot/#\~/$USERPROFILE}" # Windows paths
|
||||
else
|
||||
depot="${depot/#\~/$HOME}" # Unix-like paths
|
||||
fi
|
||||
echo "depot=$depot" | tee -a "$GITHUB_OUTPUT"
|
||||
|
||||
cache_paths=()
|
||||
|
||||
Reference in New Issue
Block a user