Skip to content

Commit

Permalink
Make -beta count as -current.
Browse files Browse the repository at this point in the history
Avoids trying getting stuck trying to update to release files while
tracking -current through a bump.
  • Loading branch information
jpouellet committed Mar 23, 2015
1 parent f01cfa0 commit 71e0d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snap
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ if [ -e ~/.last_snap ]; then
msg "last snap run: ${white}$(cat ~/.last_snap)"
fi

sysctl kern.version | grep -q "\-current"
kern_ver=$(sysctl kern.version | grep -oE "\-(current|beta)")
if [ $? == 0 ]; then
msg "kern.version: ${white}reporting as -current"
msg "kern.version: ${white}reporting as $kern_ver"
VER='snapshots'
fi

Expand Down

0 comments on commit 71e0d0a

Please sign in to comment.