Add cygpath and wslpath support, wrap in bash function

This commit is contained in:
baldurk
2018-11-28 14:41:13 +00:00
parent b147041581
commit fca4995d6e
3 changed files with 23 additions and 14 deletions
+2 -4
View File
@@ -28,10 +28,8 @@ INPUTFILE="$1"
# Don't convert any arguments automatically, convert paths if needed
MSYS2_ARG_CONV_EXCL="*"
if which cygpath >/dev/null 2>&1; then
KEYFILE=$(cygpath -w "${KEYFILE}")
INPUTFILE=$(cygpath -w "${INPUTFILE}")
fi
KEYFILE=$(native_path "${KEYFILE}")
INPUTFILE=$(native_path "${INPUTFILE}")
# First check to see if it is already signed.
# An exit value of 1 from signtool indicates it is not signed.