summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-12-24 10:00:55 +0100
committerThomas Lange <code@nerdmind.de>2016-12-24 10:00:55 +0100
commit7eaddf4194142b3dd95f697dbca38791e2c16650 (patch)
tree0127a2bb5e7c0ffb74d0c6558850fd379bfd45f3
parent7749d85d6396af0e8a825926bcc3d334b640c4ec (diff)
downloadsnippets-7eaddf4194142b3dd95f697dbca38791e2c16650.tar.gz
snippets-7eaddf4194142b3dd95f697dbca38791e2c16650.tar.xz
snippets-7eaddf4194142b3dd95f697dbca38791e2c16650.zip
Comment section updated and getopts variable name changed.
-rwxr-xr-xBash/ldd-copy-dependencies.sh8
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