Fix encoding for echo. Add a reload-shared if the project a;ready exists.

This commit is contained in:
2026-05-06 09:17:12 -07:00
parent eda63610ad
commit ba465cdece

View File

@@ -16,7 +16,7 @@ if [[ "$1" == "skip" || "$2" == "skip" || "$3" == "skip" ]]; then
fi
if [[ "$skip" == "true" ]]; then
echo "\n`date` - Skipping Updates"
echo -e "\n`date` - Skipping Updates"
else
echo -e "\n`date` - Upgrade Package Repos"
pkg update &&
@@ -41,7 +41,7 @@ fi
if [[ "$skip" == "true" ]]; then
echo "\n`date` - Skipping Installs"
echo -e "\n`date` - Skipping Installs"
else
echo -e "\n`date` - Install Software"
pkg install -y \
@@ -87,9 +87,10 @@ if [[ ! -d ~/Code && ! -d ~/sdcard/Code ]]; then
fi
echo -e "\n`date` - env-shared"
env_shared_dir="$HOME/.env-shared"
if [[ ! -d "$env_shared_dir" ]]; then
echo -e "\n`date` - env-shared"
echo -e "`date` - Not installed, downloading."
if [[ -z "$BRANCH" ]]; then
export BRANCH="dev"
fi
@@ -101,6 +102,9 @@ if [[ ! -d "$env_shared_dir" ]]; then
mkdir -pv ~/bin
fi
cp -v ~/$env_shared_dir/bin-shared/* ~/bin/
else
echo -e "`date` - Already installed, updating."
update-shared
fi