Compare commits

..

2 Commits

Author SHA1 Message Date
clrbuilder 7d0977c785 Update packages file for version 22450
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2018-05-17 02:48:06 +00:00
Patrick McCarty 9184a2fd62 user-setup: support abs/rel paths for cert options
Support both absolute and relative paths for the cert options, instead
of relative paths only, by using realpath(1) to resolve the arguments.

(Note that the script cannot reference the path arguments verbatim
because much of the script operates in the workspace's toplevel
directory, which is a different location than where the script is
invoked. In that situation, relative paths would not resolve.)

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-05-15 14:50:09 -07:00
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -778,6 +778,7 @@ diffoscope
diffstat
diffutils
dist-pam-configs
distro
dmenu
dmidecode
dnf
+3 -3
View File
@@ -36,15 +36,15 @@ while [ $# -gt 0 ]; do
;;
"--client-cert"|"-k")
shift
PEM="$PWD/$1"
PEM="$(realpath $1)"
;;
"--server-ca"|"-s")
shift
SERVERCA="$PWD/$1"
SERVERCA="$(realpath $1)"
;;
"--client-ca"|"-c")
shift
CLIENTCA="$PWD/$1"
CLIENTCA="$(realpath $1)"
;;
"--jobs"|"-j")
if echo "$2" | grep -qx "[1-9][0-9]*"; then