summaryrefslogtreecommitdiff
path: root/src/install.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-15 09:53:27 +0000
committerdavidovski <david@davidovski.xyz>2022-03-15 09:53:27 +0000
commiteac3c122678d19e090742d01e348d800d358733a (patch)
treeeeb026a5ec6a32a69d02f6999e441f7d667422a6 /src/install.sh
parent0c0496130f64b4ebe051172af86c0c332db9d5e9 (diff)
refactoringrefactoringrefactoring
Diffstat (limited to 'src/install.sh')
-rw-r--r--src/install.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/install.sh b/src/install.sh
index 198b4e5..140c6dd 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -104,7 +104,7 @@ install () {
local total=$(total_filecount $packages 2>/dev/null || echo 1)
local files_files=""
for package in $packages; do
- local name=$(basename package .xipkg | cut -d. -f2)
+ local name=$(basename $package .xipkg | cut -d. -f2)
${VERBOSE} && printf "${BLACK}installing $name from $package \n${RESET}"
install_package $package $name &
@@ -117,3 +117,10 @@ install () {
run_postinstall
fi
}
+
+reinstall () {
+ local packages=$@
+ remove $@
+ install $@
+}
+