]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/bin/sc
shell: redirect stderr to stdout for systemd aliases/functions
[config/dotfiles.git] / shell / bin / sc
index 506e90adc99ee29db12ae38aee44cecff4a7f89a..34746fa052239dd62720e9ee0c6846ebacc50460 100755 (executable)
@@ -2,7 +2,7 @@
 
 # Small wrapper for systemctl which provides some shortcuts.
 
-# Copyright (C) 2015  Simon Ruderich
+# Copyright (C) 2015-2019  Simon Ruderich
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -50,4 +50,4 @@ for arg; do
 done
 
 set +u # empty $args causes an error, I think this is a bug in bash
-exec systemctl "${args[@]}"
+exec systemctl "${args[@]}" 2>&1