diff options
Diffstat (limited to 'src/lib/globals')
-rw-r--r-- | src/lib/globals | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/globals b/src/lib/globals index 1d7feea..83c64a2 100644 --- a/src/lib/globals +++ b/src/lib/globals @@ -109,7 +109,7 @@ load_profile() { if [[ -z $Interface ]]; then exit_error "Profile '$1' does not specify an interface" fi - if [[ ! -r "$CONN_DIR/${Connection:-/dev/null/nonexistent}" ]]; then + if [[ ! -r "${Connection:+$CONN_DIR/$Connection}" ]]; then exit_error "Profile '$1' does not specify a valid connection" fi if [[ -x "$PROFILE_DIR/interfaces/$Interface" ]]; then |