mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
21 lines
560 B
Bash
21 lines
560 B
Bash
#!/bin/bash
|
|
|
|
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
|
|
chmod +x ./linutil
|
|
./linutil |