mirror of
https://github.com/actuallymentor/battery.git
synced 2026-02-03 14:03:24 +00:00
Fix spelling of 'batery'/'battery'
This commit is contained in:
10
update.sh
10
update.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user