From 5c66e672ba7b47e682e8dc5476ab07f3e12525ff Mon Sep 17 00:00:00 2001 From: bryan Date: Sat, 15 Aug 2020 08:55:35 -0400 Subject: [PATCH] Add short option -s for --ssh-upgrade --- openwrtBuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openwrtBuild b/openwrtBuild index bcd1514..01fd215 100755 --- a/openwrtBuild +++ b/openwrtBuild @@ -74,7 +74,7 @@ OPTIONS --profile, -p PROFILE --version, -v OPENWRT_VERSION --builddir, -b PATH - --ssh-upgrade SSH_PATH + --ssh-upgrade, -s SSH_PATH Example: root@192.168.1.1 --flash, -f DEVICE Example: /dev/sdX @@ -90,7 +90,7 @@ parseInput() { debug "${FUNCNAME[0]}" - if _input=$(getopt -o +v:p:b:f:dh -l version:,profile:,builddir:,ssh-upgrade:,flash:,debug,help -- "$@"); then + if _input=$(getopt -o +v:p:b:s:f:dh -l version:,profile:,builddir:,ssh-upgrade:,flash:,debug,help -- "$@"); then eval set -- "$_input" while true; do case "$1" in @@ -103,7 +103,7 @@ parseInput() { --builddir|-b) shift && _builddir="$1" ;; - --ssh-upgrade) + --ssh-upgrade|-s) shift && _ssh_upgrade_path="$1" ;; --flash|-f)