@geekbeer/minion 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/minion-cli.sh +3 -0
- package/package.json +1 -1
package/minion-cli.sh
CHANGED
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
set -euo pipefail
|
|
23
23
|
|
|
24
|
+
# Ensure HOME is set (cloud-init may not set it)
|
|
25
|
+
export HOME="${HOME:-$(getent passwd "$(whoami)" | cut -d: -f6)}"
|
|
26
|
+
|
|
24
27
|
# Resolve version from package.json (installed location)
|
|
25
28
|
CLI_DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
|
|
26
29
|
CLI_VERSION="$(node -p "require('${CLI_DIR}/package.json').version")"
|