diff options
author | Thomas Lange <code@nerdmind.de> | 2016-12-24 10:00:55 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2016-12-24 10:00:55 +0100 |
commit | 7eaddf4194142b3dd95f697dbca38791e2c16650 (patch) | |
tree | 0127a2bb5e7c0ffb74d0c6558850fd379bfd45f3 /Bash | |
parent | 7749d85d6396af0e8a825926bcc3d334b640c4ec (diff) | |
download | snippets-7eaddf4194142b3dd95f697dbca38791e2c16650.tar.gz snippets-7eaddf4194142b3dd95f697dbca38791e2c16650.tar.xz snippets-7eaddf4194142b3dd95f697dbca38791e2c16650.zip |
Comment section updated and getopts variable name changed.
Diffstat (limited to 'Bash')
-rwxr-xr-x | Bash/ldd-copy-dependencies.sh | 8 |
1 files 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 |