Skip to content

Instantly share code, notes, and snippets.

@emirchus
Last active February 22, 2021 11:21
Show Gist options
  • Save emirchus/7016eef5ad2ee0ba3818a15fb0d93ee6 to your computer and use it in GitHub Desktop.
Save emirchus/7016eef5ad2ee0ba3818a15fb0d93ee6 to your computer and use it in GitHub Desktop.
To install the command run: cp ./debinstaller /usr/bin/ And then run: chmod +x /usr/bin/debinstaller to be able to use the command run: debinstaller <filename>
#!/bin/bash
FILE=data.tar.xz
echo "Extrayendo $1 en la carpeta actual >w<"
sudo ar xf $1
echo "Instalando programa ^-^"
if [-f FILE]; then
sudo tar xf data.tar.xz -C /
else
sudo tar xf data.tar.gz -C /
echo "Programando instalado, limpiando directorio owo"
sudo rm control.tar.xz control.tar.gz data.tar.gz data.tar.xz debian-binary
echo "Directorio limpiado, ahora haré magia uwu"
sudo usysconf run -f
echo "Gracias por usarme nya"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment