diff options
author | Luke Smith <luke@lukesmith.xyz> | 2022-04-20 14:19:48 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2022-04-20 14:19:48 -0400 |
commit | 32d63b12dbda5fc2590176e1a99c7376e0395dc3 (patch) | |
tree | 277e1cc60e0ca8ca0f4afd42fd37e685e5c64028 /bin | |
parent | 6446c12a92552f3e420c57fe2381cc80176a3c8e (diff) |
Revert "Hard link the file instead of copying"
This reverts commit 95687867d1795299625e1e3dc5cdc412155de879.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/openfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/openfile b/bin/openfile index a351f75..cf3c6c3 100755 --- 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 |