1765942009

This commit is contained in:
2025-12-16 20:26:49 -07:00
parent 1686aa6f16
commit 835dc517ac
+16 -16
View File
@@ -96,24 +96,24 @@ if [ ! -z "$1" ]; then
## oniux ## oniux
echo -e "\nINSTALLIN TOR ONIUX\n" echo -e "\nINSTALLIN TOR ONIUX\n"
if [ -f /usr/local/bin/oniux ]; then if [ -f /usr/local/bin/oniux ]; then
echo -e "\nexisting oniux found, deleting and rebuilding\n" echo -e "\nexisting oniux found, skipping\n"
sudo rm -f /usr/local/bin/oniux
else else
echo -e "\nexisting oniux not found, skipping delete\n" echo -e "\nexisting oniux not found, installing\n"
### from main
echo -e "\ndownloadin oniux code from main branch\n"
##### niec fast downdoot
git clone --recursive --single-branch --depth 1 -b main https://gitlab.torproject.org/tpo/core/oniux /tmp/oniux
cd /tmp/oniux
### build it
echo -e "\nbuildin and installin oniux\n"
cargo build
### move it somewhere in PATH
sudo mv ./target/debug/oniux /usr/local/bin/
# cleanup
echo -e "\ncleanan upps\n"
sudo apt autoremove -y
fi fi
### from main
echo -e "\ndownloadin oniux code from main branch\n"
##### niec fast downdoot
git clone --recursive --single-branch --depth 1 -b main https://gitlab.torproject.org/tpo/core/oniux /tmp/oniux
cd /tmp/oniux
### build it
echo -e "\nbuildin and installin oniux\n"
cargo build
### move it somewhere in PATH
sudo mv ./target/debug/oniux /usr/local/bin/
# cleanup
echo -e "\ncleanan upps\n"
sudo apt autoremove -y
else else
echo -e "\nskipping package install\n" echo -e "\nskipping package install\n"
fi fi