gniemetz / automount

Mount shares at login
MIT License
40 stars 6 forks source link

Expect scripts return exit code 0 even if command failed #11

Closed gmta closed 6 years ago

gmta commented 6 years ago

In a number of spots in automount.sh an expect script has the following statement:

eof {
    return
}

I've discovered that this ignores e.g. authentication errors thrown by commands like mount_smbfs. The fix for me to let the exit status fall through was to replace the above statement by just:

eof