Skip to content

Commit

Permalink
removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Josee9988 committed Sep 8, 2019
1 parent b2606b4 commit a0e1f19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ A bash script that will clean your temporary Windows files in **Windows Subsyste

It will remove **local** and **global** temporary files that are useless.

Free up space and improve performance by removing all this unused files.
Free up space and improve performance by removing all these unused files.

---

## **Download**💎📥

See the **[release](/~https://github.com/Josee9988/WSL-cleanTemp/releases/tag/1.0)**.
Take a look at the **[release](/~https://github.com/Josee9988/WSL-cleanTemp/releases/tag/1.0)**.

**[Direct download](/~https://github.com/Josee9988/WSL-cleanTemp/releases/download/1.0/cleanTemp.sh)** to the .sh script.

Expand Down
13 changes: 6 additions & 7 deletions cleanTemp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# will free up space and let your Windows perform better.
# TITLE: Clean temporary files
# AUTHOR: Jose Gracia
# VERSION: 1.0 Release
# VERSION: 1.01
# NOTES: This script is tested multiple times and got no errors,
# the temporary files that are needed or are in use
# will not be removed, anyways we do not take care of any
Expand All @@ -19,10 +19,9 @@
# MAIL: jgracia9988@gmail.com
#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#

RED='\033[0;31m'
NC='\033[0m'
UNDERLINE=$(echo -en "\e[4m")
PURPLE=$(echo -en "\e[35m")
red='\033[0;31m'
nc='\033[0m'
underLine=$(echo -en "\e[4m")
startTime=$(date +%s%N)

if grep -q Microsoft /proc/version; then #checks if you are using WSL or a regular Linux.
Expand All @@ -36,8 +35,8 @@ if grep -q Microsoft /proc/version; then #checks if you are using WSL or a regul

echo "Done. All your temporary files that were not in use are now removed!"

echo -e "Time used for the script: ${UNDERLINE}$((($(date +%s%N) - $startTime) / 1000000)) milliseconds${NC}."
echo -e "Time used for the script: ${underLine}$((($(date +%s%N) - $startTime) / 1000000)) milliseconds${nc}."

else
echo -e "You are ${RED}NOT${NC} using ${UNDERLINE}Windows Subsystem for Linux${NC} so this script will automatically close."
echo -e "You are ${red}NOT${nc} using ${underLine}Windows Subsystem for Linux${nc} so this script will automatically close."
fi

0 comments on commit a0e1f19

Please sign in to comment.