post-refresh 340 B

123456789
  1. #!/usr/bin/env bash
  2. set -e
  3. CONFIG_DIR=$(snapctl get ozw.config-dir)
  4. USER_DIR=$(snapctl get ozw.user-dir)
  5. snapctl set ozw.config-dir=$(echo $CONFIG_DIR | sed -e "s#${SNAP_NAME}/\([x0-9]\+\)#${SNAP_NAME}/${SNAP_REVISION}#g")
  6. snapctl set ozw.user-dir=$(echo $USER_DIR | sed -e "s#${SNAP_NAME}/\([x0-9]\+\)#${SNAP_NAME}/${SNAP_REVISION}#g")