Skip to content

Commit

Permalink
version: use $BTRFS_AUTO_SNAPSHOT_VERSION (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
motiejus authored May 6, 2024
1 parent 7102a73 commit fcd4d58
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions btrfs-auto-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ set -euo pipefail
#set -o functrace
#set -o xtrace

# Define our version
version=2.0.3
# Define our version. Distributions may replace it with:
# sed -i 's/^\(BTRFS_AUTO_SNAPSHOT_VERSION\)=.*/\1=<version>/' <file>
BTRFS_AUTO_SNAPSHOT_VERSION=${BTRFS_AUTO_SNAPSHOT_VERSION:-unknown}

# Define various error codes
ERR_SUCCESS=0
Expand Down Expand Up @@ -69,7 +70,7 @@ check_sys_reqs()

usage()
{
echo "$0 $version"
echo "$0 $BTRFS_AUTO_SNAPSHOT_VERSION"
echo
echo "Usage: $0 [options] [-l label] <'//' | name [name...]>
-d, --debug Print debugging messages
Expand Down

0 comments on commit fcd4d58

Please sign in to comment.