cd /home/data/users/sredding/downloads/papyrus-rt/builds cp /opt/public/download-staging.priv/papyrus-rt/repo.zip . unzip repo.zip #ls -al ./repository/features build_id=eclipse_org-`ls ./repository/features/org.eclipse.papyrusrt.codegen-feature_* \ | sed -r 's/.*org\.eclipse\.papyrusrt\.codegen-feature_(.+)\.jar/\1/'` build_dir=./$build_id mv repo.zip $build_id.zip rm -rf nightly mv repository nightly