This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
die(){ printf '%s\n' "$*" >&2; exit 1; } | |
for cmd in curl tar xz; do | |
if ! command -v "$cmd" >/dev/null 2>&1; then | |
die "error: missing '$cmd'" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set modified time of signed win .exe (and associated .bin files) to signature timestamp | |
# required: https://learn.microsoft.com/en-us/sysinternals/downloads/sigcheck | |
SIGCHECK="./sigcheck64.exe" | |
usage() { | |
echo "Usage: $0 [-r] [-v] [-d] [--created-after YYYYMMDD | -c YYYYMMDD] [--deep] <target_directory>" | |
echo " -r Process subdirectories recursively" |