Files
fish-shell/share/functions/__fish_cache_put.fish
Johannes Altmanninger 2c0e912fe1 Mark private functions that don't need localization
See the next commit.

Part of #11833

(cherry picked from commit a53db72564)
2025-09-30 11:52:41 +02:00

12 lines
334 B
Fish

# localization: skip(private)
function __fish_cache_put
set -l cache_file $argv[1]
touch $cache_file
set -l dir (path dirname $cache_file)
chown --reference=$dir $cache_file 2>/dev/null ||
chown (
stat --format '%u:%g' $dir 2>/dev/null ||
stat -f '%u:%g' $dir
) $cache_file
end