2024-06-29 02:58:54 +01:00
|
|
|
#!/bin/bash
|
2024-06-29 03:12:23 +01:00
|
|
|
|
|
|
|
RC='\e[0m'
|
|
|
|
RED='\e[31m'
|
|
|
|
YELLOW='\e[33m'
|
|
|
|
GREEN='\e[32m'
|
|
|
|
|
|
|
|
# Check if the home directory and linuxtoolbox folder exist, create them if they don't
|
|
|
|
LINUXTOOLBOXDIR="$HOME/linuxtoolbox"
|
|
|
|
|
|
|
|
if [[ ! -d "$LINUXTOOLBOXDIR" ]]; then
|
|
|
|
echo -e "${YELLOW}Creating linuxtoolbox directory: $LINUXTOOLBOXDIR${RC}"
|
|
|
|
mkdir -p "$LINUXTOOLBOXDIR"
|
|
|
|
echo -e "${GREEN}linuxtoolbox directory created: $LINUXTOOLBOXDIR${RC}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "$LINUXTOOLBOXDIR" || exit
|
|
|
|
|
|
|
|
curl -L https://github.com/ChrisTitusTech/linutil/raw/main/linutil -o linutil
|
2024-06-29 02:58:54 +01:00
|
|
|
chmod +x ./linutil
|
2024-06-29 03:12:23 +01:00
|
|
|
./linutil
|