File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -197,34 +197,34 @@ run() {
197
197
elif [[ ${FILE#* .} == go ]]; then
198
198
if [[ $COMPILE == true ]]; then
199
199
go build -o " ${FILE%% .* } .out" " $FILE "
200
- if [[ $PERSISTENT != true ]]; then
201
- rm " ${FILE%% .* } .out"
202
- fi
203
200
else
204
201
go run " $FILE "
205
202
fi
203
+ if [[ $PERSISTENT != true ]]; then
204
+ rm " ${FILE%% .* } .out"
205
+ fi
206
206
207
207
elif [[ ${FILE#* .} == pl ]]; then
208
208
perl " $FILE "
209
209
210
210
elif [[ ${FILE#* .} == lua ]]; then
211
- lua " $FILE "
211
+ lua " $FILE "
212
212
213
213
elif [[ ${FILE#* .} == rb ]]; then
214
- ruby " $FILE "
214
+ ruby " $FILE "
215
215
216
216
elif [[ ${FILE#* .} == hs ]]; then
217
217
if [[ $DEBUG == true ]]; then
218
218
ghci " $FILE "
219
219
elif [[ $COMPILE == true ]]; then
220
220
ghc --make " $FILE "
221
- else
222
- runghc " $FILE "
223
- fi
221
+ else
222
+ runghc " $FILE "
223
+ fi
224
224
225
- if [[ $PERSISTENT != true ]]; then
226
- rm " ${FILE%% .* } .o" " ${FILE%% .* } .hi"
227
- fi
225
+ if [[ $PERSISTENT != true ]]; then
226
+ rm " ${FILE%% .* } .o" " ${FILE%% .* } .hi" " ${FILE %% . * } "
227
+ fi
228
228
229
229
else
230
230
_ERROR_UFTC_
@@ -316,9 +316,6 @@ for arg in "$@"; do
316
316
" --persistent" | " p" )
317
317
PERSISTENT=true
318
318
;;
319
- " --no-persistent" | " np" )
320
- PERSISTENT=false
321
- ;;
322
319
" --compile" | " c" )
323
320
COMPILE=true
324
321
PERSISTENT=true
You can’t perform that action at this time.
0 commit comments