#!/usr/bin/env bash if [[ "$(realpath "$(dirname "$(realpath -s "$0")")/../../../")" == "/" ]]; then . /usr/local/libexec/zio/helpers/bash.sh else . "$(dirname "$(realpath -s "$0")")/../libexec/zio/helpers/bash.sh" fi # TODO: Check if we're actually using the rootfs git test_root orig_dir="$(pwd)" cd / git reset --hard origin main git pull cd $orig_dir