File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040zz_log i " Installing Zscaler curl wrapper to {U $WRAPPER_TARGET }"
4141run_as_root install -m 755 " $WRAPPER_SOURCE " " $WRAPPER_TARGET "
4242
43- if [ -L " $CURL_BIN " ] && [ " $( readlink -f " $CURL_BIN " ) " = " $WRAPPER_TARGET " ]; then
44- zz_log w " curl is already routed through Zscaler wrapper"
45- else
46- if [ ! -e " $CURL_REAL_BIN " ]; then
47- zz_log i " Preserving original curl as {U $CURL_REAL_BIN }"
48- run_as_root mv " $CURL_BIN " " $CURL_REAL_BIN "
49- fi
50-
51- zz_log i " Linking {U $CURL_BIN } to {U $WRAPPER_TARGET }"
52- run_as_root ln -sfn " $WRAPPER_TARGET " " $CURL_BIN "
43+ if [ ! -e " $CURL_REAL_BIN " ]; then
44+ zz_log i " Preserving original curl as {U $CURL_REAL_BIN }"
45+ run_as_root mv " $CURL_BIN " " $CURL_REAL_BIN "
5346fi
5447
48+ zz_log i " Linking {U $CURL_BIN } to {U $WRAPPER_TARGET }"
49+ run_as_root ln -sfn " $WRAPPER_TARGET " " $CURL_BIN "
50+
5551zz_log i " Installing curl configuration to {U $CURRENT_HOME /.curlrc}"
5652run_as_root install -m 644 " $CURLRC_SOURCE " " $CURRENT_HOME /.curlrc"
5753run_as_root chown " $CURRENT_USER " :" $( id -gn " $CURRENT_USER " ) " " $CURRENT_HOME /.curlrc"
You can’t perform that action at this time.
0 commit comments