forked from mirrored-repos/manjaro-tools
lib fix
This commit is contained in:
parent
b3938e2e68
commit
21114546e2
2 changed files with 5 additions and 5 deletions
|
@ -51,6 +51,11 @@ declare -A fsck_types=([cramfs]=1
|
||||||
[vfat]=1
|
[vfat]=1
|
||||||
[xfs]=1)
|
[xfs]=1)
|
||||||
|
|
||||||
|
ignore_error() {
|
||||||
|
"$@" 2>/dev/null
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
track_mount() {
|
track_mount() {
|
||||||
if [[ -z $CHROOT_ACTIVE_MOUNTS ]]; then
|
if [[ -z $CHROOT_ACTIVE_MOUNTS ]]; then
|
||||||
CHROOT_ACTIVE_MOUNTS=()
|
CHROOT_ACTIVE_MOUNTS=()
|
||||||
|
|
|
@ -8,11 +8,6 @@
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
ignore_error() {
|
|
||||||
"$@" 2>/dev/null
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
# in_array() {
|
# in_array() {
|
||||||
# local i
|
# local i
|
||||||
# for i in "${@:2}"; do
|
# for i in "${@:2}"; do
|
||||||
|
|
Loading…
Reference in a new issue