wip
This commit is contained in:
parent
d77b1769a3
commit
e249d9b5ab
1 changed files with 6 additions and 1 deletions
7
pkgui.sh
7
pkgui.sh
|
@ -74,13 +74,18 @@
|
||||||
local url="https://git.k4li.de/scripts/installs/raw/branch/main/.src/pkgui"
|
local url="https://git.k4li.de/scripts/installs/raw/branch/main/.src/pkgui"
|
||||||
cd $tempDir || mkdir $tempDir && cd $tempDir
|
cd $tempDir || mkdir $tempDir && cd $tempDir
|
||||||
|
|
||||||
|
echo_info "Curling the binary directly via $url.."
|
||||||
|
# echo_warning "DEBUG:
|
||||||
|
# $PWD
|
||||||
|
# $(ls -la)
|
||||||
|
# "
|
||||||
curl -fsSL $url -o pkgui || echo_warning "Could not curl $url"
|
curl -fsSL $url -o pkgui || echo_warning "Could not curl $url"
|
||||||
chmod +x ./pkgui
|
chmod +x ./pkgui
|
||||||
}
|
}
|
||||||
|
|
||||||
instPkgUI() {
|
instPkgUI() {
|
||||||
if [ -d "$HOME/.local/bin" ]; then
|
if [ -d "$HOME/.local/bin" ]; then
|
||||||
ln -sfr "$HOME/.local/bin/pkgui" && echo_note "Linked to $HOME/.local/bin/pkgui"
|
ln -srf ./pkgui "$HOME/.local/bin/pkgui" && echo_note "Linked to $HOME/.local/bin/pkgui"
|
||||||
else
|
else
|
||||||
echo_note "Couldn't find $HOME/.local/bin directory, linking systemwide.."
|
echo_note "Couldn't find $HOME/.local/bin directory, linking systemwide.."
|
||||||
$_sudo ln -sfr ./pkgui /bin/pkgui && echo_note "Linked to /bin/pkgui"
|
$_sudo ln -sfr ./pkgui /bin/pkgui && echo_note "Linked to /bin/pkgui"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue