needing to revamp the run() command..
This commit is contained in:
parent
8afaa6d745
commit
bc95f25101
1 changed files with 7 additions and 6 deletions
13
distros.sh
13
distros.sh
|
@ -159,7 +159,7 @@ source-script() {
|
||||||
source_script "$1"
|
source_script "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
run() {
|
run-silent() {
|
||||||
[[ -z $silent ]] &&
|
[[ -z $silent ]] &&
|
||||||
"$@" ||
|
"$@" ||
|
||||||
# else
|
# else
|
||||||
|
@ -359,6 +359,7 @@ _setup() {
|
||||||
|
|
||||||
# ─< Distribution detection and installation >────────────────────────────────────────
|
# ─< Distribution detection and installation >────────────────────────────────────────
|
||||||
get_packager() {
|
get_packager() {
|
||||||
|
# ─< define fallback function >───────────────────────────────────────────────────────────
|
||||||
fallback() {
|
fallback() {
|
||||||
# ─────────────────────────────────────< get packager >─────────────────────────────────────
|
# ─────────────────────────────────────< get packager >─────────────────────────────────────
|
||||||
local pkger=""
|
local pkger=""
|
||||||
|
@ -513,12 +514,12 @@ dist_setup() {
|
||||||
aur=false
|
aur=false
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
alpine)
|
alpine | opensuse)
|
||||||
_setup alpine
|
_setup $distro
|
||||||
;;
|
|
||||||
opensuse)
|
|
||||||
_setup opensuse
|
|
||||||
;;
|
;;
|
||||||
|
# opensuse)
|
||||||
|
# _setup opensuse
|
||||||
|
# ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue