This repository has been archived on 2024-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
al-installer/install.sh
2019-03-23 12:24:35 -07:00

13 lines
504 B
Bash
Executable File

#!/bin/bash
if (( UID != 0 )); then
printf "privilege escalation required\n"
su -c 'hash git >/dev/null 2>&1 || pacman -Syy git
git clone --depth=1 https://bitbucket.org/archlabslinux/installer && cp -fv installer/archlabs-installer /usr/bin/ && rm -rf installer'
else
hash git >/dev/null 2>&1 || pacman -Syy git
git clone --depth=1 https://bitbucket.org/archlabslinux/installer && cp -fv installer/archlabs-installer /usr/bin/ && rm -rf installer
fi
[ $? -eq 0 ] && printf "\nInstall complete\n"