File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,34 +197,34 @@ run() {
197197 elif [[ ${FILE#* .} == go ]]; then
198198 if [[ $COMPILE == true ]]; then
199199 go build -o " ${FILE%% .* } .out" " $FILE "
200- if [[ $PERSISTENT != true ]]; then
201- rm " ${FILE%% .* } .out"
202- fi
203200 else
204201 go run " $FILE "
205202 fi
203+ if [[ $PERSISTENT != true ]]; then
204+ rm " ${FILE%% .* } .out"
205+ fi
206206
207207 elif [[ ${FILE#* .} == pl ]]; then
208208 perl " $FILE "
209209
210210 elif [[ ${FILE#* .} == lua ]]; then
211- lua " $FILE "
211+ lua " $FILE "
212212
213213 elif [[ ${FILE#* .} == rb ]]; then
214- ruby " $FILE "
214+ ruby " $FILE "
215215
216216 elif [[ ${FILE#* .} == hs ]]; then
217217 if [[ $DEBUG == true ]]; then
218218 ghci " $FILE "
219219 elif [[ $COMPILE == true ]]; then
220220 ghc --make " $FILE "
221- else
222- runghc " $FILE "
223- fi
221+ else
222+ runghc " $FILE "
223+ fi
224224
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
228228
229229 else
230230 _ERROR_UFTC_
@@ -316,9 +316,6 @@ for arg in "$@"; do
316316 " --persistent" | " p" )
317317 PERSISTENT=true
318318 ;;
319- " --no-persistent" | " np" )
320- PERSISTENT=false
321- ;;
322319 " --compile" | " c" )
323320 COMPILE=true
324321 PERSISTENT=true
You can’t perform that action at this time.
0 commit comments