oh-my-devpod 0.15.2 → 0.15.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/package.json +1 -1
- package/runtime/VERSION +1 -1
- package/runtime/bin/omd +0 -0
- package/runtime/build/omd-brew-gateway.sh +10 -0
package/package.json
CHANGED
package/runtime/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.15.
|
|
1
|
+
0.15.3
|
package/runtime/bin/omd
CHANGED
|
Binary file
|
|
@@ -247,6 +247,15 @@ run_real_brew() {
|
|
|
247
247
|
env -i "${clean_env[@]}" "${real_brew}" "$@"
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
prepare_backend_working_directory() {
|
|
251
|
+
local fallback="$1" current=""
|
|
252
|
+
current="$(pwd -P 2>/dev/null || true)"
|
|
253
|
+
if [[ -n "${current}" && -r "${current}" && -x "${current}" ]]; then
|
|
254
|
+
return 0
|
|
255
|
+
fi
|
|
256
|
+
cd -P "${fallback}" 2>/dev/null || fail "service home is not an accessible working directory"
|
|
257
|
+
}
|
|
258
|
+
|
|
250
259
|
run_backend() {
|
|
251
260
|
local home status mutates=0 before name value
|
|
252
261
|
if [[ "${1:-}" == "--omd-forwarded" ]]; then
|
|
@@ -281,6 +290,7 @@ run_backend() {
|
|
|
281
290
|
[[ "$(id -u)" == "$(manifest_value service_uid)" ]] || fail "backend must run as $(service_user)"
|
|
282
291
|
validate_inventory_records
|
|
283
292
|
home="$(service_home "$(service_user)")"
|
|
293
|
+
prepare_backend_working_directory "${home}"
|
|
284
294
|
before="${state_dir}/.inventory-before.$$"
|
|
285
295
|
if is_inventory_mutation "${1:-}"; then
|
|
286
296
|
mutates=1
|