aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-29 17:24:06 +0500
committerLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-29 17:24:06 +0500
commitad72eb8312e0f6f6d1a6988b019ade98c4ec4853 (patch)
treebe20f8f33db1b69587b4d7736a6bde2f69c7008d /library
parent13eb5f3cfb004e5910c8e007bf1e23333c846e4e (diff)
update
Diffstat (limited to 'library')
-rw-r--r--library/setupPkg.sh7
-rw-r--r--library/setupPkgPipx.sh11
-rwxr-xr-xlibrary/setupPkgYay.sh29
3 files changed, 7 insertions, 40 deletions
diff --git a/library/setupPkg.sh b/library/setupPkg.sh
new file mode 100644
index 0000000..bae4683
--- /dev/null
+++ b/library/setupPkg.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ "$1" = "pipx" ]; then
+ source $HOME/bin/setupPkgPipx.sh
+elif [ "$1" = "yay" ]; then
+ source $HOME/bin/setupPkgYay.sh
+fi
diff --git a/library/setupPkgPipx.sh b/library/setupPkgPipx.sh
deleted file mode 100644
index c208805..0000000
--- a/library/setupPkgPipx.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-setupPkgPipx () {
- readarray -t pipxPkg < <(cat $HOME/archisofiles/pkglists/pipxpkglist.txt)
-
- for pkg in ${pipxPkg[@]}; do
- pipx install "$pkg"
- done
-}
-
-setupPkgPipx
diff --git a/library/setupPkgYay.sh b/library/setupPkgYay.sh
deleted file mode 100755
index 2c3e547..0000000
--- a/library/setupPkgYay.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-setupPkgYay () {
- cd
- git clone https://aur.archlinux.org/yay
-
- cd $HOME/yay
- makepkg -isr
-
- cd
- rm -rf $HOME/yay
-
- if [ "$1" = "pc" ]; then
- yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglist.txt
- elif [ "$1" = "notebook" ]; then
- yay -S --needed - < "$dirArchIsoFiles"/pkglists/pkglistnote.txt
- fi
-}
-
-select platform in "pc" "notebook"; do
-
- if [ "$platform" = "" ]; then
- echo "Invalid option"
- break
- else
- setupPkgYay "$platform"
- fi
-
-done