commit 32d63b12dbda5fc2590176e1a99c7376e0395dc3
parent 6446c12a92552f3e420c57fe2381cc80176a3c8e
Author: Luke Smith <luke@lukesmith.xyz>
Date: Wed, 20 Apr 2022 14:19:48 -0400
Revert "Hard link the file instead of copying"
This reverts commit 95687867d1795299625e1e3dc5cdc412155de879.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/openfile b/bin/openfile
@@ -5,6 +5,6 @@ tempdir="${XDG_CACHE_HOME:-$HOME/.cache}/mutt-wizard/files"
file="$tempdir/$(basename "$1")"
[ "$(uname)" = "Darwin" ] && opener="open" || opener="setsid -f xdg-open"
mkdir -p "$tempdir"
-ln -f "$1" "$file"
+cp -f "$1" "$file"
$opener "$file" >/dev/null 2>&1
find "${tempdir:?}" -mtime +1 -type f -delete