forked from xdeb-org/xdeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatualizar-xdeb.sh
51 lines (32 loc) · 1.03 KB
/
atualizar-xdeb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#
# AUTOR: Fernando Souza - https://www.youtube.com/@fernandosuporte/
# Versão 0.1: 25/09/2023 as 20:26
#
# xdeb: Um utilitário simples para converter pacotes deb(ian) em pacotes xbps
#
# https://github.com/toluschr/xdeb/releases
#
#
# https://www.vivaolinux.com.br/dicas/impressora.php?codigo=24732
# https://www.vivaolinux.com.br/topico/Linux-cientifico/Como-salvar-os-arquivos-baixados-pelo-wget-em-uma-pasta-especificada-na-linha-de-comando
pasta="/usr/local/bin"
which curl || exit
which cut || exit
which sed || exit
which wget || exit
which chmod || exit
which ls || exit
which grep || exit
clear
cd ~/
versao=$(curl -L https://github.com/toluschr/xdeb/releases | grep "https://github.com/toluschr/xdeb/releases/" | head -n1 | cut -d " " -f14 | sed 's/"//g' | sed 's/src=//g' | cut -d/ -f8)
# 1.3
wget -P "$pasta" -c -nv https://github.com/toluschr/xdeb/releases/download/"$versao"/xdeb
chmod +x "$pasta"/xdeb
sleep 1
clear
echo "
"
ls -lh "$pasta"/xdeb
exit 0