Skip to content

Commit

Permalink
Fix sed expression to remove blank lines from /etc/fstab (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanl authored and EliasGabrielsson committed Nov 20, 2018
1 parent 07415fb commit 846d7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ vimrc_copy() {
srv_bind_mounts() {
echo -n "$(timestamp) [openHABian] Preparing openHAB folder mounts under /srv/... "
sed -i "\#[ \t]/srv/openhab2-#d" /etc/fstab
sed -i "\#^$#d" /etc/fstab
sed -i "/^$/d" /etc/fstab
(
echo ""
echo "/usr/share/openhab2 /srv/openhab2-sys none bind 0 0"
Expand Down

0 comments on commit 846d7b3

Please sign in to comment.