Browse Source

Add version to help text

Joachim M. Giæver 3 years ago
parent
commit
89ff68c545
2 changed files with 2 additions and 1 deletions
  1. 1 0
      snap/snapcraft.yaml
  2. 1 1
      src/helper/env-wrapper

+ 1 - 0
snap/snapcraft.yaml

@@ -109,6 +109,7 @@ parts:
     plugin: nil
     stage-snaps:
       - jq
+      - yq
     stage-packages:
       - git
       - udev

+ 1 - 1
src/helper/env-wrapper

@@ -35,7 +35,7 @@ if [ ${OPT_HELP} = true ]; then
         echo "NOTE! NOTE! NOTE!"
         echo ""
     fi
-    echo "${SNAP_NAME} ($ ($ 1 --version))"
+    echo "${SNAP_NAME} - $(yq eval '.version' "${SNAP}/meta/snap.yaml")"
     echo ""
     echo "IMPORTANT! The DAEMON/SERVICE is disabled by default after installation." 
     echo "You have to manually 'daemonize' it with executing the command"