From 7eaddf4194142b3dd95f697dbca38791e2c16650 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 24 Dec 2016 10:00:55 +0100 Subject: Comment section updated and getopts variable name changed. --- Bash/ldd-copy-dependencies.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Bash/ldd-copy-dependencies.sh b/Bash/ldd-copy-dependencies.sh index 207d1df..ebc3da8 100755 --- a/Bash/ldd-copy-dependencies.sh +++ b/Bash/ldd-copy-dependencies.sh @@ -8,17 +8,17 @@ # be mapped relative to the target directory. The binary file itself will also # # be copied to the target directory. # # # -# ARGUMENT [-b]: Full path to the binary whose dependencies shall be copied. # -# ARGUMENT [-t]: Full path to the target directory for the dependencies. # +# OPTION [-b]: Full path to the binary whose dependencies shall be copied. # +# OPTION [-t]: Full path to the target directory for the dependencies. # # # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# #=============================================================================== # Parsing command-line arguments with the getopts shell builtin #=============================================================================== -while getopts :b:t: opt +while getopts :b:t: option do - case $opt in + case $option in b) ARGUMENT_BINARY="$OPTARG" ;; t) ARGUMENT_TARGET="$OPTARG" ;; esac -- cgit v1.2.3