소스 검색

improved exitcode

Daniel Gibbs 9 년 전
부모
커밋
cc91a5ea3e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lgsm/functions/command_update_linuxgsm.sh

+ 2 - 2
lgsm/functions/command_update_linuxgsm.sh

@@ -75,8 +75,8 @@ if [ -n "${functionsdir}" ]; then
 		for functionfile in *
 		do
 			echo -ne "    checking function ${functionfile}...\c"
-			function_file_diff=$(diff "${functionsdir}/${functionfile}" <(${curlpath} -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}";exitcode=$?))
-			if [ "${exitcode}" -ne 0 ]; then
+			function_file_diff=$(diff "${functionsdir}/${functionfile}" <(${curlpath} -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}"))
+			if [ $? -ne 0 ]; then
 				fn_print_fail_eol_nl
 				echo -ne "    removing unknown function ${functionfile}...\c"
 				fn_script_log_fatal "removing unknown function ${functionfile}"