This repository has been archived on 2020-03-22. You can view files and clone it, but cannot push or open issues/pull-requests.
ThatMinecraftLauncher/devtools/harvest_arguments.sh

11 lines
375 B
Bash
Executable File

#!/bin/bash
NOW=`date`
echo "Executable: $0" > "$NOW.log"
echo "Timestamp: $NOW" >> "$NOW.log"
echo -n "Arguments: " >> "$NOW.log"
echo "$*" | sed ':a;s/ -/\n >>>-/;ta' >> "$NOW.log"
echo "Full command: $0 $*" >> "$NOW.log"
BACKUPCMD="`readlink -f \`which $0\``_backup"
echo "Actual command: $BACKUPCMD $*" >> "$NOW.log"
echo "$BACKUPCMD $*" | sh