diff options
author | ZachIR <zachir@librem.one> | 2022-11-28 00:04:12 -0600 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2022-11-28 00:04:12 -0600 |
commit | 9581b754cb39212dbebee56f46cb0260572c5df9 (patch) | |
tree | 6da4285ea5f4c5f97c97cc30e5c9908a222d56a2 /svlogc | |
parent | bf07bae38661f7a1dfb49ca25b2b1227876ed6be (diff) |
use /bin/sh not /sbin/sh
Diffstat (limited to 'svlogc')
-rwxr-xr-x | svlogc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,4 +1,4 @@ -#!/sbin/sh +#!/bin/sh SERV_NAME=$(echo "$1" | sed 's/\/log$//') [ -f /var/log/"$SERV_NAME"/current ] && tac /var/log/"$(echo "$1" | sed 's/\/log$//')"/current | less || echo "Cannot read log" |