1
0
angie-conv-image/scripts/divert-rm.sh
2024-07-11 13:37:35 +03:00

8 lines
158 B
Bash
Executable File

#!/bin/sh
set -ef
: "${1:?}"
d=$(printf '%s' "/run/$1" | tr -s '/')
mkdir -p "$(dirname "$d")"
dpkg-divert --divert "$d" --rename "$1" 2>/dev/null
rm -f "$d"