SpottyMatt / raspbian-stepmania-arcade

Guide & scripts to turn a Raspberry Pi into a StepMania arcade machine
83 stars 7 forks source link

readlink giving unnecessary errors if stepmania is not yet installed #16

Open jose1711 opened 3 years ago

jose1711 commented 3 years ago

Nothing critical, yet it would be nice to have this handled properly. First make invocation, stepmania not installed yet:

$ make
readlink: missing operand
Try 'readlink --help' for more information.
make system-prep
make[1]: Entering directory '/home/pi/raspbian-stepmania-arcade'
readlink: missing operand
Try 'readlink --help' for more information.
..

A quick fix to consider:

SM_INSTALL_DIR=$(shell dirname $$(readlink -f $$(which stepmania)) 2>/dev/null) => SM_INSTALL_DIR=$(shell dirname $$(readlink -f $$(which stepmania) 2>/dev/null) 2>/dev/null)