Fix spelling of 'batery'/'battery'

This commit is contained in:
Aaron Wallentine
2022-11-23 13:52:42 -07:00
parent 7b3b6a90fa
commit 1fe4aefe93

View File

@@ -3,18 +3,18 @@
# Set environment variables
tempfolder=~/.battery-tmp
binfolder=/usr/local/bin
bateryfolder="$tempfolder/battery"
mkdir -p $bateryfolder
batteryfolder="$tempfolder/battery"
mkdir -p $batteryfolder
echo -e "🔋 Starting battery update\n"
# Write battery function as executable
echo "[ 1/3 ] Cloning battery repository"
rm -rf $bateryfolder
git clone --depth 1 https://github.com/actuallymentor/battery.git $bateryfolder &> /dev/null
rm -rf $batteryfolder
git clone --depth 1 https://github.com/actuallymentor/battery.git $batteryfolder &> /dev/null
echo "[ 2/3 ] Writing script to $binfolder/battery"
cp $bateryfolder/battery.sh $binfolder/battery
cp $batteryfolder/battery.sh $binfolder/battery
chown $USER $binfolder/battery
chmod 755 $binfolder/battery
chmod u+x $binfolder/battery