Skip to content

Commit 282828a

Browse files
committed
new lang support: BashScript
1 parent 6b48bff commit 282828a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

run

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ run() {
179179
find . -type f -name "*.class" -mmin -2 -exec rm -rf {} \; 2>/dev/null
180180
fi
181181

182+
elif [[ ${FILE#*.} == sh ]]; then
183+
./"$FILE"
184+
182185
else
183186
_ERROR_UFTC_
184187
_EXIT_
@@ -204,10 +207,11 @@ for arg in "$@"; do
204207
echo " ${yellow}>>${white} Python"
205208
echo " ${yellow}>>${white} Rust"
206209
echo " ${yellow}>>${white} Java"
210+
echo " ${yellow}>>${white} Bash-Script"
207211
echo
208212
;;
209213

210-
*".c" | *".cpp" | *".py" | *".rs" | *".java")
214+
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh")
211215
FILE_LOCATION=$arg
212216
if [[ ! -f $FILE_LOCATION ]]; then
213217
_ERROR_UFTC_

0 commit comments

Comments
 (0)