Skip to content

Commit

Permalink
Merge pull request #66 from oSoMoN/fix-last-revision-location
Browse files Browse the repository at this point in the history
Write the .last_revision stamp under $SNAP_USER_DATA.
  • Loading branch information
didrocks committed Jun 29, 2017
2 parents c3bc072 + 6c1f938 commit 05d8142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/init
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

needs_update=true

. ~/.last_revision 2>/dev/null || true
. $SNAP_USER_DATA/.last_revision 2>/dev/null || true
if [ "$SNAP_DESKTOP_LAST_REVISION" = "$SNAP_REVISION" ]; then
needs_update=false
fi
[ $needs_update = true ] && echo "SNAP_DESKTOP_LAST_REVISION=$SNAP_REVISION" > ~/.last_revision
[ $needs_update = true ] && echo "SNAP_DESKTOP_LAST_REVISION=$SNAP_REVISION" > $SNAP_USER_DATA/.last_revision

if [ "$SNAP_ARCH" == "amd64" ]; then
ARCH="x86_64-linux-gnu"
Expand Down
2 changes: 1 addition & 1 deletion common/mark-and-exec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# Mark update and exec binary #
###############################

[ $needs_update = true ] && echo "SNAP_DESKTOP_LAST_REVISION=$SNAP_REVISION" > ~/.last_revision
[ $needs_update = true ] && echo "SNAP_DESKTOP_LAST_REVISION=$SNAP_REVISION" > $SNAP_USER_DATA/.last_revision

exec "$@"

0 comments on commit 05d8142

Please sign in to comment.