Commit ff0b857d authored by Jondy Zhao's avatar Jondy Zhao

post-install: fix local variable only can be used in the fuction

parent 87571e2e
...@@ -21,8 +21,8 @@ function show_error_exit() ...@@ -21,8 +21,8 @@ function show_error_exit()
exit 1 exit 1
} }
local cyghome=$(cygpath -w /) declare -r cyghome=$(cygpath -w /)
local password_filename=/etc/passwd declare -r password_filename=/etc/passwd
echo Checking /etc/passwd ... echo Checking /etc/passwd ...
if [[ ! -f ${password_filename} ]] ; then if [[ ! -f ${password_filename} ]] ; then
......
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