We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2923b0 commit fc463feCopy full SHA for fc463fe
src/ugrd/base/base.py
@@ -179,7 +179,7 @@ def readvar(self) -> str:
179
def check_var(self) -> str:
180
"""Returns a bash function that checks the value of a variable.
181
if it's not set, tries to read the cmdline."""
182
- return """
+ return r"""
183
if [ -z "$(readvar "$1")" ]; then # preferably the variable is set, because this is slower
184
cmdline=$(awk -F '--' '{print $1}' /proc/cmdline) # Get everything before '--'
185
if grep -qE "(^|\s)$1(\s|$)" <<< "$cmdline"; then
@@ -259,7 +259,7 @@ def klog(self) -> str:
259
# To feel more at home
260
def edebug(self) -> str:
261
"""Returns a bash function like edebug."""
262
263
if check_var quiet; then
264
return
265
fi
0 commit comments