#!/bin/sh newest_dir="$(find ./ -type f -printf "%T@ %p\n" \ | sort -n \ | cut -d' ' -f 2- \ | tail -n 1 \ | xargs dirname)" sh $newest_dir/build.sh