Explorar o código

Add version to help text

Joachim M. Giæver %!s(int64=3) %!d(string=hai) anos
pai
achega
89ff68c545
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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"