mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 12:37:46 +00:00
Switch from returns to exit codes
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
for cmd in "$@"; do
|
for cmd in "$@"; do
|
||||||
if ! command -v "$cmd" &>/dev/null; then
|
if ! command -v "$cmd" &>/dev/null; then
|
||||||
return 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
return 1
|
exit 1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for cmd in "$@"; do
|
for cmd in "$@"; do
|
||||||
command -v "$cmd" &>/dev/null || return 1
|
command -v "$cmd" &>/dev/null || exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
return 0
|
exit 0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
pacman -Q "$pkg" &>/dev/null || return 1
|
pacman -Q "$pkg" &>/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
return 0
|
exit 0
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
if ! pacman -Q "$pkg" &>/dev/null; then
|
if ! pacman -Q "$pkg" &>/dev/null; then
|
||||||
return 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
return 1
|
exit 1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
pacman -Q "$pkg" &>/dev/null || return 1
|
pacman -Q "$pkg" &>/dev/null || exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
return 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user