mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 09:26:53 +08:00
fix slashes in windows depot path (#153)
This commit is contained in:
@@ -68,6 +68,7 @@ runs:
|
||||
fi
|
||||
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
|
||||
depot="${depot/#\~/$USERPROFILE}" # Windows paths
|
||||
depot="${depot//\\//}" # Replace backslashes with forward slashes
|
||||
else
|
||||
depot="${depot/#\~/$HOME}" # Unix-like paths
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user