scripts: enable linker debugging when running in debug mode

This commit is contained in:
Simon Fels 2018-07-05 09:18:41 +02:00
commit 7b10faf47a
3 changed files with 10 additions and 9 deletions

View file

@ -1,9 +1,7 @@
#!/bin/sh
if [ "$(snapctl get debug.enable)" = true ]; then
touch "$SNAP_COMMON"/.enable_debug
else
rm -f "$SNAP_COMMON"/.enable_debug
fi
# We need to have something for snapd in place in order to
# allow configuration options for our snap even if the items
# are read via snapctl elsewhere in the code.
exit 0