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

21 lines
665 B
Bash
Raw Normal View History

#!/bin/bash
hash git >/dev/null 2>&1 || { printf "This requires git installed\n"; exit 1; }
git clone --depth=1 https://bitbucket.org/archlabslinux/installer
2019-01-12 02:54:03 -06:00
if [[ $(whoami) != 'root' ]]; then
asroot=sudo
printf "\nRoot access is needed to continue\n\n"
else
asroot=""
fi
2019-01-12 02:54:03 -06:00
$asroot mkdir -pv /usr/share/archlabs/installer/{lang,docs}
$asroot cp -fv installer/src/archlabs-installer /usr/bin/
$asroot cp -fv installer/src/packages.txt /usr/share/archlabs/installer/
$asroot cp -fv installer/lang/*.trans /usr/share/archlabs/installer/lang/
$asroot cp -fv installer/{LICENSE,README.md} /usr/share/archlabs/installer/docs/
printf "\nInstall complete\n"