Finish v4 upgrade cleanup

This commit is contained in:
Ryan Hughes
2026-06-04 18:38:25 -04:00
parent 0804962619
commit d0cac7346a
9 changed files with 455 additions and 61 deletions
+19 -1
View File
@@ -2,4 +2,22 @@
# omarchy:summary=Print the installed Omarchy version
cat $OMARCHY_PATH/version
omarchy_path=${OMARCHY_PATH:-/usr/share/omarchy}
omarchy_path=${omarchy_path%/}
if [[ $omarchy_path != "/usr/share/omarchy" ]]; then
hash=$(git -C "$omarchy_path" rev-parse --short HEAD 2>/dev/null || true)
if [[ -n $hash ]]; then
echo "dev ($hash)"
else
echo "dev"
fi
exit 0
fi
version=$(pacman -Q omarchy 2>/dev/null | awk '{ print $2 }')
[[ -n $version ]] || exit 1
echo "$version"