Commit 3581274d authored by Adam P. Goucher's avatar Adam P. Goucher
Browse files

Readlink to ensure absolute path

parent 58bb6a1c
Pipeline #36455052 passed with stages
in 6 minutes and 9 seconds
......@@ -3,7 +3,7 @@
///bin/cat /dev/null; bash
///bin/cat /dev/null; echo 'Compiling...'
///bin/cat /dev/null; sourcename="$0"
///bin/cat /dev/null; exename="${sourcename%.*}"
///bin/cat /dev/null; exename="$( readlink -f "${sourcename%.*}" )"
///bin/cat /dev/null; g++ -std=c++11 -O3 -march=native -Wall -Wextra "$sourcename" -o "$exename"
///bin/cat /dev/null; echo '...compiled.'
///bin/cat /dev/null; date
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment