testing
This commit is contained in:
parent
c39279553c
commit
c594535bf5
2 changed files with 26 additions and 19 deletions
|
@ -1,20 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
unset PACKAGE &&
|
|
||||||
PACKAGE=hyprgraphics
|
|
||||||
|
|
||||||
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||||
command_exists() {
|
command_exists() {
|
||||||
command -v "$@" >/dev/null 2>&1
|
command -v "$@" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
if command_exists $PACKAGE; then
|
|
||||||
echo_warning "$PACKAGE is alread installed!"
|
|
||||||
echo_note "$(which $PACKAGE)"
|
|
||||||
echo_warning "Exiting now!"
|
|
||||||
exit 69
|
|
||||||
fi
|
|
||||||
|
|
||||||
# WHY:
|
# WHY:
|
||||||
# This import will give you the following variables:
|
# This import will give you the following variables:
|
||||||
# _sudo="sudo -E" <- only if non root user
|
# _sudo="sudo -E" <- only if non root user
|
||||||
|
@ -42,6 +32,19 @@ getImports() {
|
||||||
source "$import"
|
source "$import"
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
rm "$import"
|
rm "$import"
|
||||||
|
|
||||||
|
unset PACKAGE
|
||||||
|
|
||||||
|
PACKAGE=hyprgraphics &&
|
||||||
|
echo_note "Installing $PACKAGE.."
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
if command_exists $PACKAGE; then
|
||||||
|
echo_warning "$PACKAGE is alread installed!"
|
||||||
|
echo_warning "Exiting now!"
|
||||||
|
exit 69
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
checkComp() {
|
checkComp() {
|
||||||
|
|
|
@ -1,19 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
unset PACAKGE &&
|
|
||||||
PACKAGE=hyprutils
|
|
||||||
|
|
||||||
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||||
command_exists() {
|
command_exists() {
|
||||||
command -v "$@" >/dev/null 2>&1
|
command -v "$@" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
if command_exists $PACKAGE; then
|
|
||||||
echo_warning "$PACKAGE is alread installed!"
|
|
||||||
echo_warning "Exiting now!"
|
|
||||||
exit 69
|
|
||||||
fi
|
|
||||||
|
|
||||||
# WHY:
|
# WHY:
|
||||||
# This import will give you the following variables:
|
# This import will give you the following variables:
|
||||||
# _sudo="sudo -E" <- only if non root user
|
# _sudo="sudo -E" <- only if non root user
|
||||||
|
@ -41,6 +32,19 @@ getImports() {
|
||||||
source "$import"
|
source "$import"
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
rm "$import"
|
rm "$import"
|
||||||
|
|
||||||
|
unset PACKAGE
|
||||||
|
|
||||||
|
PACKAGE=hyprutils &&
|
||||||
|
echo_note "Installing $PACKAGE.."
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
if command_exists $PACKAGE; then
|
||||||
|
echo_warning "$PACKAGE is alread installed!"
|
||||||
|
echo_warning "Exiting now!"
|
||||||
|
exit 69
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
getDependencies() {
|
getDependencies() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue