whoops. missed -x in if test