This commit is contained in:
pika 2025-05-08 17:23:57 +02:00
parent d77b1769a3
commit e249d9b5ab

View file

@ -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"