Skip to content

Commit 991e546

Browse files
RafaelZeziliajuliolmuller
authored andcommitted
Definindo chmod +x nos arquivos .sh Python
Definindo chmod +x nos arquivos .sh
1 parent 30fdbc5 commit 991e546

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

scripts/python/execute.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/bin/bash
2-
3-
# BASE_DIR - base directory for the untrusty scripts
4-
# SRC_FILE - BASE_DUR plus the name of the text file where the source code resides
5-
# BIN_FILE - BASE_DUR plus the name of the file that will execute the program resides
6-
# INPUT_FILE - BASE_DUR plus the name of the file that will be used as input for the program
7-
8-
if [ -n "${INPUT_FILE}" ]; then
9-
python3 "${BIN_FILE}" < "${INPUT_FILE}"
10-
else
11-
python3 "${BIN_FILE}"
12-
fi
1+
#!/bin/bash
2+
3+
# BASE_DIR - base directory for the untrusty scripts
4+
# SRC_FILE - BASE_DUR plus the name of the text file where the source code resides
5+
# BIN_FILE - BASE_DUR plus the name of the file that will execute the program resides
6+
# INPUT_FILE - BASE_DUR plus the name of the file that will be used as input for the program
7+
8+
if [ -n "${INPUT_FILE}" ]; then
9+
python3 "${BIN_FILE}" < "${INPUT_FILE}"
10+
else
11+
python3 "${BIN_FILE}"
12+
fi

0 commit comments

Comments
 (0)