expected="spec/models/test_file_finder_gem_executable_widget_spec.rb" mkdir -p "spec/models" echo "existing specs" >> $expected actual=$( ruby -Ilib exe/tff app/models/test_file_finder_gem_executable_widget.rb) rm $expected if [[ -n $actual && $expected = $actual ]] then echo "Executable verified" exit 0 else echo "Could not verify executable" exit 1 fi