Move to git update to ensure it's not lost
This commit is contained in:
@@ -6,7 +6,6 @@ trap 'echo ""; echo -e "\033[0;31mSomething went wrong during the update!\n\nPle
|
|||||||
|
|
||||||
if [[ $1 == "-y" ]] || omarchy-update-confirm; then
|
if [[ $1 == "-y" ]] || omarchy-update-confirm; then
|
||||||
omarchy-snapshot create || (($? == 127))
|
omarchy-snapshot create || (($? == 127))
|
||||||
omarchy-update-time
|
|
||||||
omarchy-update-git
|
omarchy-update-git
|
||||||
omarchy-update-perform
|
omarchy-update-perform
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -4,5 +4,7 @@ set -e
|
|||||||
|
|
||||||
echo -e "\e[32mUpdate Omarchy\e[0m"
|
echo -e "\e[32mUpdate Omarchy\e[0m"
|
||||||
|
|
||||||
|
omarchy-update-time
|
||||||
|
|
||||||
git -C $OMARCHY_PATH pull --autostash
|
git -C $OMARCHY_PATH pull --autostash
|
||||||
git -C $OMARCHY_PATH --no-pager diff --check || git -C $OMARCHY_PATH reset --merge
|
git -C $OMARCHY_PATH --no-pager diff --check || git -C $OMARCHY_PATH reset --merge
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo -e "\e[32mUpdate time\e[0m\n"
|
echo "Updating time..."
|
||||||
sudo systemctl restart systemd-timesyncd
|
sudo systemctl restart systemd-timesyncd
|
||||||
|
|||||||
Reference in New Issue
Block a user