mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Allow you to easily run all migrations by passing "all"
Helpful for testing or if something went wrong
This commit is contained in:
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
cd ~/.local/share/omarchy
|
cd ~/.local/share/omarchy
|
||||||
|
|
||||||
|
if [[ $1 == "all" ]]; then
|
||||||
|
# Run all migrations
|
||||||
|
last_updated_at=1
|
||||||
|
else
|
||||||
# Remember the version we're at before upgrading
|
# Remember the version we're at before upgrading
|
||||||
last_updated_at=$(git log -1 --format=%cd --date=unix)
|
last_updated_at=$(git log -1 --format=%cd --date=unix)
|
||||||
|
fi
|
||||||
|
|
||||||
# Get the latest
|
# Get the latest
|
||||||
git pull
|
git pull
|
||||||
@ -20,4 +25,4 @@ for file in migrations/*.sh; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Back to where we came from
|
# Back to where we came from
|
||||||
cd -
|
cd - >/dev/null
|
||||||
|
Reference in New Issue
Block a user