1
0
angie-conv-image/scripts/divert-rm.sh

8 lines
163 B
Bash
Raw Normal View History

2024-07-11 13:37:35 +03:00
#!/bin/sh
set -ef
: "${1:?}"
2024-07-24 22:47:53 +03:00
d=$(printf '%s' "/run/angie/divert/$1" | tr -s '/')
mkdir -p "${d%/*}"
2024-07-11 13:37:35 +03:00
dpkg-divert --divert "$d" --rename "$1" 2>/dev/null
rm -f "$d"