mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2025-01-10 09:18:20 -07:00
Kaj Forney
582f5b5f5c
Former-commit-id: 09eacc3f3f761c2b3454d20356ba085d18bdb722 Former-commit-id: 89d8a1302bd2a72239fbe9ad9820be4ecda76cab
24 lines
688 B
Bash
Executable file
24 lines
688 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Script intended for use via the command line.
|
|
#
|
|
# `.tmux.conf` needs to be set for TPM. Tmux has to be installed on the system,
|
|
# but does not need to be started in order to run this script.
|
|
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
SCRIPTS_DIR="$CURRENT_DIR/../scripts"
|
|
PROGRAM_NAME="$0"
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "usage:"
|
|
echo " $PROGRAM_NAME all update all plugins"
|
|
echo " $PROGRAM_NAME tmux-foo update plugin 'tmux-foo'"
|
|
echo " $PROGRAM_NAME tmux-bar tmux-baz update multiple plugins"
|
|
exit 1
|
|
fi
|
|
|
|
main() {
|
|
"$SCRIPTS_DIR/update_plugin.sh" --shell-echo "$*" # has correct exit code
|
|
}
|
|
main "$*"
|
|
|