Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Skip empty lines in fscomp.conf #258

Merged
merged 2 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- pot-cmd: Output problems with pot root to stderr (#254)
- version: Don't require pot root to exist to run version command (#253)
- mount-in: Skip empty lines in fscomp.conf during mount process (#258)

## [0.15.4] 2022-12-15
### Added
Expand Down
4 changes: 4 additions & 0 deletions share/pot/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,10 @@ _pot_mount()
return 1 # false
fi
while read -r line ; do
if [ -z "$line" ]; then
_debug "Empty line found. Skipping."
continue
fi
_dset=$( echo "$line" | awk '{print $1}' )
_mnt_p=$( echo "$line" | awk '{print $2}' )
_opt=$( echo "$line" | awk '{print $3}' )
Expand Down