Commit 80a6abce authored by Jondy Zhao's avatar Jondy Zhao

Transfer window path to posix path

parent 23a7d2a2
...@@ -45,6 +45,7 @@ elif [[ ! -f $client_certificate_file ]] ; then ...@@ -45,6 +45,7 @@ elif [[ ! -f $client_certificate_file ]] ; then
[[ ! -f "$certificate_file" ]] && \ [[ ! -f "$certificate_file" ]] && \
show_error_exit "Certificate file $certificate_file doesn't exists." show_error_exit "Certificate file $certificate_file doesn't exists."
echo "Copy certificate from $certificate_file to $client_certificate_file" echo "Copy certificate from $certificate_file to $client_certificate_file"
certificate_file=$(cygpath -u $certificate_file)
cp $certificate_file $client_certificate_file cp $certificate_file $client_certificate_file
fi fi
...@@ -56,6 +57,7 @@ elif [[ ! -f $client_key_file ]] ; then ...@@ -56,6 +57,7 @@ elif [[ ! -f $client_key_file ]] ; then
[[ ! -f "$key_file" ]] && \ [[ ! -f "$key_file" ]] && \
show_error_exit "Key file $key_file doesn't exists." show_error_exit "Key file $key_file doesn't exists."
echo "Copy key from $key_file to $client_key_file" echo "Copy key from $key_file to $client_key_file"
key_file=$(cygpath -u $key_file)
cp $key_file $client_key_file cp $key_file $client_key_file
fi fi
......
...@@ -148,6 +148,7 @@ elif [[ ! -f $node_certificate_file ]] ; then ...@@ -148,6 +148,7 @@ elif [[ ! -f $node_certificate_file ]] ; then
[[ ! -f "$certificate_file" ]] && \ [[ ! -f "$certificate_file" ]] && \
show_error_exit "Certificate file $certificate_file doesn't exists." show_error_exit "Certificate file $certificate_file doesn't exists."
echo "Copy certificate from $certificate_file to $node_certificate_file" echo "Copy certificate from $certificate_file to $node_certificate_file"
certificate_file=$(cygpath -u $certificate_file)
cp $certificate_file $node_certificate_file cp $certificate_file $node_certificate_file
fi fi
...@@ -159,6 +160,7 @@ elif [[ ! -f $node_key_file ]] ; then ...@@ -159,6 +160,7 @@ elif [[ ! -f $node_key_file ]] ; then
[[ ! -f "$key_file" ]] && \ [[ ! -f "$key_file" ]] && \
show_error_exit "Key file $key_file doesn't exists." show_error_exit "Key file $key_file doesn't exists."
echo "Copy key from $key_file to $node_key_file" echo "Copy key from $key_file to $node_key_file"
key_file=$(cygpath -u $key_file)
cp $key_file $node_key_file cp $key_file $node_key_file
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment