replace tr '\n' 'CHAR' with paste -sd 'CHAR' (#625)
This commit is contained in:
1 parent
2b6b3822e3
commit
6577acae89
5 files changed
+6
-6
No files matched your search
@@ -53,7 +53,7 @@ multimon() { # Multi-monitor handler.
|
||||
esac ;}
|
||||
|
||||
onescreen() { # If only one output available or chosen.
|
||||
xrandr --output "$1" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$1" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ')
|
||||
xrandr --output "$1" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$1" | awk '{print "--output", $1, "--off"}' | paste -sd ' ')
|
||||
}
|
||||
|
||||
postrun() { # Stuff to run to clean up.
|
||||
|
||||
Reference in new issue
Block a user