#!/bin/bash # Find this script's location SCRIPT_DIR=$(cd "$(dirname "$BASH_SOURCE[0]")" && pwd) # Extract embedded zip tail -n +$(awk '/^__ZIPDATA__/ print NR+1; exit' "$0") "$0" | tar xz -C /tmp # Execute your program /tmp/your_program "$@" exit __ZIPDATA__
Hiring managers know the struggle: you find the perfect candidate, but the offer is held up by a "background check in progress" status that takes weeks. zippedscript