def get_broken_symlink_check_str(variableName):
    """Will take a file variable name and will print bash code that will
    check if the symlink for that file is broken

    This seems to be helping with files not being staged out properly.
    Likely will not be necessary in bug fixed versions of Swift

    Do not force an exit since other checks may occur afer the symlink
    check"""
    return '# See if the symlink is orphaned... if so exit 1\nif [ ! -e $' + variableName + """ ] ; then
	echo "$""" + variableName + ' symlink good" >> $logFile 2>&1\nelse\n\techo "$' + variableName + """ symlink broken" >> $logFile 2>&1
	exit 1
fi

"""
