From 14c8530f7e10bd95b68d4c3fd69c76b6cfde8c9c Mon Sep 17 00:00:00 2001 From: Ducky Date: Tue, 15 Aug 2023 17:03:03 +0100 Subject: [PATCH] sh.zio.update-rootfs: fix incorrect git logic --- usr/local/bin/sh.zio.update-rootfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/local/bin/sh.zio.update-rootfs b/usr/local/bin/sh.zio.update-rootfs index 93acd83..7de6ab0 100755 --- a/usr/local/bin/sh.zio.update-rootfs +++ b/usr/local/bin/sh.zio.update-rootfs @@ -9,11 +9,12 @@ fi # TODO: Check if we're actually using the rootfs git test_root +test_prog "git" orig_dir="$(pwd)" cd / +git fetch --all git reset --hard origin main -git pull cd $orig_dir