]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/BinWrappers/PosixLike/LzmaF86Compress
BaseTools: Improve LzmaF86Compress wrapper
[mirror_edk2.git] / BaseTools / BinWrappers / PosixLike / LzmaF86Compress
index 18946a4d2dc4e655bcfe2e3e04042be22a2d078b..50af530cbdb405c61df8b8e83a9cff7aabd74cbb 100755 (executable)
 # 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 "$@"