debug: setup.sh debugging

This commit is contained in:
mustard 2025-10-20 15:11:01 +02:00
parent fbc7ba3e21
commit 95064bdc63

View file

@ -3,17 +3,21 @@
set -eo pipefail
# running in guest
echo "hmmm"
guest_name="$(qubesdb-read /name)"
echo "hmmmmmm"
echo $(realpath ""$0"")
guest_repo_dir="$(dirname $(realpath ""$0""))"
echo $guest_repo_dir
echo "hmmmmmm"
pushd ${guest_repo_dir} >/dev/null
if git remote | grep -Fq 'dom0'; then
echo "(${guest_name}) remote 'dom0' already exists" >&2
else
echo "(${guest_name}) setting up remote 'dom0' to pull changes via bundle" >&2
echo "ehhh"
echo ${guest_repo_dir}
git remote add dom0 ${guest_repo_dir}/.bundles/dom0.bundle
fi