Merge pull request #1010 from ryanrhughes/update-omarchy-snapshot
Make omarchy-snapshot exit if you don't have Snapper but continue update
This commit is contained in:
commit
617e96234b
@ -8,6 +8,11 @@ if [[ -z $COMMAND ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! command -v snapper &>/dev/null; then
|
||||||
|
echo "You need Snapper installed to be able to use omarchy-snapshot."
|
||||||
|
exit 127
|
||||||
|
fi
|
||||||
|
|
||||||
case "$COMMAND" in
|
case "$COMMAND" in
|
||||||
create)
|
create)
|
||||||
DESC="$(omarchy-version)"
|
DESC="$(omarchy-version)"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
omarchy-snapshot create
|
omarchy-snapshot create || [ $? -eq 127 ]
|
||||||
omarchy-update-git
|
omarchy-update-git
|
||||||
omarchy-migrate
|
omarchy-migrate
|
||||||
omarchy-update-system-pkgs
|
omarchy-update-system-pkgs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user