Skip to content

Commit de17b34

Browse files
committed
fix: change shell to bash instead of ksh
1 parent 24b5088 commit de17b34

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mamonsu/plugins/system/linux/scripts.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Scripts(object):
7272
""",
7373

7474
'disk_stats':
75-
"""#!/usr/bin/env ksh
75+
"""#!/bin/bash
7676
IFS_DEFAULT="${IFS}"
7777
#
7878
#################################################################################
@@ -147,7 +147,7 @@ class Scripts(object):
147147
""",
148148

149149
'disk_stats_read_op':
150-
"""#!/usr/bin/env ksh
150+
"""#!/bin/bash
151151
rval=`cat /proc/diskstats`
152152
153153
count=1
@@ -186,7 +186,7 @@ class Scripts(object):
186186
""",
187187

188188
'disk_stats_read_b':
189-
"""#!/usr/bin/env ksh
189+
"""#!/bin/bash
190190
rval=`cat /proc/diskstats`
191191
192192
count=1
@@ -221,7 +221,7 @@ class Scripts(object):
221221
""",
222222

223223
'disk_stats_write_op':
224-
"""#!/usr/bin/env ksh
224+
"""#!/bin/bash
225225
rval=`cat /proc/diskstats`
226226
227227
count=1
@@ -261,7 +261,7 @@ class Scripts(object):
261261
""",
262262

263263
'disk_stats_write_b':
264-
"""#!/usr/bin/env ksh
264+
"""#!/bin/bash
265265
rval=`cat /proc/diskstats`
266266
267267
count=1
@@ -296,7 +296,7 @@ class Scripts(object):
296296
echo $(($value*512))
297297
""",
298298
'net':
299-
"""#!/usr/bin/env ksh
299+
"""#!/bin/bash
300300
301301
302302
#################################################################################
@@ -347,7 +347,7 @@ class Scripts(object):
347347
""",
348348

349349
'disk_stats_ticks':
350-
"""#!/usr/bin/env ksh
350+
"""#!/bin/bash
351351
rval=`cat /proc/diskstats`
352352
353353
count=1

0 commit comments

Comments
 (0)