summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools')
-rwxr-xr-xBaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaF86Compress15
-rwxr-xr-xBaseTools/BinWrappers/PosixLike/LzmaF86Compress15
2 files changed, 16 insertions, 14 deletions
diff --git a/BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaF86Compress b/BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaF86Compress
index c3e49cf29d..50af530cbd 100755
--- a/BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaF86Compress
+++ b/BaseTools/Bin/CYGWIN_NT-5.1-i686/LzmaF86Compress
@@ -12,11 +12,12 @@
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
-for arg in $*; do
- if [ "arg" = "-e" -o "arg" = "-d" ]; then
- FLAG=--f86
- break;
- fi
-done
+for arg; do
+ case $arg in
+ -e|-d)
+ set -- "$@" --f86
+ break
+ ;;
+esac
-LzmaCompress $* $FLAG
+exec LzmaCompress "$@"
diff --git a/BaseTools/BinWrappers/PosixLike/LzmaF86Compress b/BaseTools/BinWrappers/PosixLike/LzmaF86Compress
index 18946a4d2d..50af530cbd 100755
--- a/BaseTools/BinWrappers/PosixLike/LzmaF86Compress
+++ b/BaseTools/BinWrappers/PosixLike/LzmaF86Compress
@@ -12,11 +12,12 @@
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
-for arg in $*; do
- if [ "$arg" = "-e" -o "$arg" = "-d" ]; then
- FLAG=--f86
- break;
- fi
-done
+for arg; do
+ case $arg in
+ -e|-d)
+ set -- "$@" --f86
+ break
+ ;;
+esac
-LzmaCompress $* $FLAG
+exec LzmaCompress "$@"