From 89f8903bc5b942211c95e3a1dfdf1d030be8596d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Sep 2013 23:29:44 +0200 Subject: portability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gotrc-examples/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gotrc-examples/commands') diff --git a/gotrc-examples/commands b/gotrc-examples/commands index 1a98b07..6c382bf 100644 --- a/gotrc-examples/commands +++ b/gotrc-examples/commands @@ -8,7 +8,7 @@ login_function=_login_commands function _login_commands { - if [ "${user::1}" = "+" ]; then + if [ "${user%%+*}" = "" ]; then if [ "${user}" = "+shutdown" ]; then shutdown -h now elif [ "${user}" = "+reboot" ]; then -- cgit v1.2.3-70-g09d2