This avoids a name overlap with the system-installed copy of python. Since redo adds the redo/ dir to the $PATH before running .do files, python.do might see its own previously-created target instead of the "real" python when testing, and create an infinite loop by accident.
5 lines
139 B
Text
5 lines
139 B
Text
umask 0022
|
|
redo mode1
|
|
MODE=$(../../redo/py -c \
|
|
'import os; print oct(os.stat("mode1").st_mode & 07777)')
|
|
[ "$MODE" = "0644" ] || exit 78
|