We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8bd9c3 commit 0a97226Copy full SHA for 0a97226
1 file changed
backends/cache_fs
@@ -22,7 +22,11 @@ restore_cache() {
22
# shellcheck disable=2064 # actually want variable interpolated here
23
trap "release_lock_folder '${from}'" SIGINT SIGTERM SIGQUIT
24
25
- cp -a "$from" "$to"
+ if [ -d "$from" ]; then
26
+ cp -a "${from}/." "$to" # copy as folder
27
+ else
28
+ cp -a "$from" "$to"
29
+ fi
30
31
release_lock "${from}"
32
}
0 commit comments