Update 2024-05-16 22:06 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-05-16 22:06:24 +02:00
parent 694b4b83df
commit defcd72a07
5 changed files with 20 additions and 9 deletions

View File

@@ -1,3 +1,17 @@
#/bin/sh -e
2>/dev/null 1>&2 $1 "$2" &
sleep 1
#/bin/sh
# $1 program
# $2 file
set -ex
prog="$1"
file="$2"
name=${file%.*}
ext=${file##*.}
ln -f "$file" "$name.tmp.$ext"
$prog "$name.tmp.$ext"
rm -f "$name.tmp.$ext"