Files
snapd/generate-packaging-dir
John R. Lenton 5f0aeae640 many: cover *all* standalone shell scripts with shellcheck
This might be getting out of hand. I blame ogra.
2017-05-22 17:40:43 +01:00

18 lines
371 B
Bash
Executable File

#!/bin/sh
set -eu
# shellcheck disable=SC1091
. /etc/os-release
# FIXME:
# once we support something other than ubuntu this needs to become
# smarter:
# - debian-sid does not have VERSION_ID, probably best to grep
# /etc/apt/sources.list there
# - rpm systems do not need the debian dir :)
# update symlink
rm -f debian
ln -s "packaging/${ID}-${VERSION_ID}" debian