HEX
Server: nginx/1.18.0
System: Linux mail.dakarash.co.id 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //snap/tree/54/bin/tree-launch
#!/usr/bin/env bash
# This is the maintainence launcher for the snap, make necessary runtime environment changes to make the snap work here.  You may also insert security confinement/deprecation/obsoletion notice of the snap here.

set \
    -o errexit \
    -o errtrace \
    -o nounset \
    -o pipefail

#export IMPORTANT_ENVIRONMENT_VARIABLE=value

# Finally run the next part of the command chain
"${@}"

# Only present announcement once per install
if ! test -f "${SNAP_USER_COMMON}"/marker_publisher_changed_announcement_shown; then
    touch "${SNAP_USER_COMMON}"/marker_publisher_changed_announcement_shown

    # Only present announcement for a week
    if test "$(date +%Y%m%d)" -lt 20190423; then
        (
            # Redirect to standard error device to avoid corrupting regular output
            printf -- \
                '\n# %s #\n%s\n\n%s\n\n%s\n\n    %s\n\n%s\n\n    %s\n\n%s\n' \
                "Snap Publisher Changed Announcement" \
                \
                "Hello, if you're seeing this message means that you're one of the 7,153 users who has installed the \`tree\` snap.  I would like you to know that the publisher of this snap has recently changed to ๆž—ๅšไป(Buo-ren, Lin) due to the unmaintained status and some minor issues in the packaging." \
                \
                "The snap will continue to function and be maintained so there's no actions in particular required to be done at your end.  However, this might be a good opportunity for you to reconsider whether you want to keep this snap installed." \
                \
                'This message will only be presented once, if you want to see it again on next execution for whatever reason, remove the following marker file should do the job:' \
                \
                    "rm ${SNAP_USER_COMMON}/marker_publisher_changed_announcement_shown" \
                \
                'If you have any questions, suggestions, or want to report an error, please refer to the bug tracker at the following address:' \
                \
                    'https://bugs.launchpad.net/tree-snap' \
                \
                'Thanks for your attention and apologies if this announcement has cause any distress to you.'
        ) 1>&2
    fi
fi