Skip to content

Commit

Permalink
feat: make layman optional
Browse files Browse the repository at this point in the history
  • Loading branch information
DakEnviy committed Nov 8, 2021
1 parent 529d786 commit 743f906
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions esync
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ if [[ "$EUID" -ne 0 ]]; then
exit
fi

echo "Syncing layman overlays..."\
&& layman -S -q\
&& echo "Syncing emerge..."\
&& emerge --sync -q\
&& echo "Done."
if command -v layman1 &>/dev/null; then
echo "Syncing layman overlays..."
layman -S -q
fi

echo "Syncing emerge..."
emerge --sync -q

echo "Done."
14 changes: 9 additions & 5 deletions eupd
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ if [[ "$EUID" -ne 0 ]]; then
fi

esync() {
echo "Syncing layman overlays..."\
&& layman -S -q\
&& echo "Syncing emerge..."\
&& emerge --sync -q\
&& echo "Done."
if command -v layman &>/dev/null; then
echo "Syncing layman overlays..."
layman -S -q
fi

echo "Syncing emerge..."
emerge --sync -q

echo "Done."
}

case "$1" in
Expand Down

0 comments on commit 743f906

Please sign in to comment.