Hello
To build a snap I need to patch a script that ships with source code. The script references
/usr/bin/
for example.
I want to use the command
sed -i -e 's:/usr/:${SNAP_SOME_PLACE}/usr/:g' <SCRIPT>.sh
If i use ${SNAP}, then my script replaces /usr/ with something like
/snap/snapcraft/9362
which is useless outside of the build environment. What am I supposed to be using to emulate the ${SNAP} that would exist inside the actual snap?