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

13 lines
504 B
Bash
Raw Normal View History

#!/bin/bash
2019-02-23 21:09:47 -06:00
if (( UID != 0 )); then
printf "privilege escalation required\n"
su -c 'hash git >/dev/null 2>&1 || pacman -Syy git
2019-03-11 03:52:49 -05:00
git clone --depth=1 https://bitbucket.org/archlabslinux/installer && cp -fv installer/archlabs-installer /usr/bin/ && rm -rf installer'
2019-01-12 02:54:03 -06:00
else
2019-02-23 21:09:47 -06:00
hash git >/dev/null 2>&1 || pacman -Syy git
2019-03-11 03:52:49 -05:00
git clone --depth=1 https://bitbucket.org/archlabslinux/installer && cp -fv installer/archlabs-installer /usr/bin/ && rm -rf installer
2019-02-23 21:09:47 -06:00
fi
2019-02-23 21:09:47 -06:00
[ $? -eq 0 ] && printf "\nInstall complete\n"