Changed linux-setup to linutil in 1-compile-setup.sh

This commit is contained in:
afonsofrancof 2024-07-19 11:34:09 +01:00
parent 9403f30157
commit 0fa148c25c
No known key found for this signature in database

View File

@ -14,18 +14,18 @@ if [ ! -d "$LINUXTOOLBOXDIR" ]; then
echo -e "${GREEN}linuxtoolbox directory created: $LINUXTOOLBOXDIR${RC}"
fi
if [ ! -d "$LINUXTOOLBOXDIR/linux-setup" ]; then
echo -e "${YELLOW}Cloning linux-setup repository into: $LINUXTOOLBOXDIR/linux-setup${RC}"
git clone https://github.com/ChrisTitusTech/linux-setup "$LINUXTOOLBOXDIR/linux-setup"
if [ ! -d "$LINUXTOOLBOXDIR/linutil" ]; then
echo -e "${YELLOW}Cloning linutil repository into: $LINUXTOOLBOXDIR/linutil${RC}"
git clone https://github.com/ChrisTitusTech/linutil "$LINUXTOOLBOXDIR/linutil"
if [ $? -eq 0 ]; then
echo -e "${GREEN}Successfully cloned linux-setup repository${RC}"
echo -e "${GREEN}Successfully cloned linutil repository${RC}"
else
echo -e "${RED}Failed to clone linux-setup repository${RC}"
echo -e "${RED}Failed to clone linutil repository${RC}"
exit 1
fi
fi
cd "$LINUXTOOLBOXDIR/linux-setup" || exit
cd "$LINUXTOOLBOXDIR/linutil" || exit
command_exists() {
command -v "$1" >/dev/null 2>&1