2022-02-03
This commit is contained in:
parent
f86b8496ec
commit
db393215ce
55 changed files with 1907 additions and 0 deletions
16
home/dot-local/bin/mkcache
Executable file
16
home/dot-local/bin/mkcache
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
for file in "${@:-"${PWD}"}"; do
|
||||
if [[ ! -d "${file}" ]]; then
|
||||
printf $"%s: cannot create cache directory tag '%s': %s\n" \
|
||||
"${0##*/}" "${file}" $"File is not a directory" >&2
|
||||
continue
|
||||
fi
|
||||
|
||||
cat >"${file}/CACHEDIR.TAG" <<EOF
|
||||
Signature: 8a477f597d28d172789f06886806bc55
|
||||
# This file is a cache directory tag created by bash.
|
||||
# For information about cache directory tags see https://bford.info/cachedir/
|
||||
EOF
|
||||
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue