1
0
linux/debian/linux-perf.postinst
Konstantin Demin eb2bdc81cb rewrite scripts
try to provide better syntax and avoid using bash
2024-10-29 05:12:06 +03:00

13 lines
328 B
Bash

#!/bin/sh
set -e
old_version_suffix=$(printf '%s' "$2" | sed -En 's/^([0-9]+\.[0-9]+).*/\1/p')
if [ -n "${old_version_suffix}" ] ; then
dpkg-maintscript-helper symlink_to_dir \
/usr/share/doc/linux-perf "linux-perf-${old_version_suffix}" '5.16~rc8-1~exp1' linux-perf -- "$@"
fi
unset old_version_suffix
#DEBHELPER#