sh.zio.update-rootfs: fix incorrect git logic
This commit is contained in:
parent
b22a8c6397
commit
14c8530f7e
1 changed files with 2 additions and 1 deletions
|
@ -9,11 +9,12 @@ fi
|
||||||
# TODO: Check if we're actually using the rootfs git
|
# TODO: Check if we're actually using the rootfs git
|
||||||
|
|
||||||
test_root
|
test_root
|
||||||
|
test_prog "git"
|
||||||
|
|
||||||
orig_dir="$(pwd)"
|
orig_dir="$(pwd)"
|
||||||
cd /
|
cd /
|
||||||
|
|
||||||
|
git fetch --all
|
||||||
git reset --hard origin main
|
git reset --hard origin main
|
||||||
git pull
|
|
||||||
|
|
||||||
cd $orig_dir
|
cd $orig_dir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue