diff options
Diffstat (limited to 'modules.d/95resume/parse-resume.sh')
-rwxr-xr-x | modules.d/95resume/parse-resume.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/modules.d/95resume/parse-resume.sh b/modules.d/95resume/parse-resume.sh index 94d71126..2c7661f6 100755 --- a/modules.d/95resume/parse-resume.sh +++ b/modules.d/95resume/parse-resume.sh @@ -1,4 +1,7 @@ #!/bin/sh +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + if resume=$(getarg resume=) && ! getarg noresume; then export resume echo "$resume" >/.resume @@ -7,9 +10,9 @@ else fi case "$resume" in - LABEL=*) - resume="$(echo $resume | sed 's,/,\\x2f,g')" - resume="/dev/disk/by-label/${resume#LABEL=}" ;; - UUID=*) - resume="/dev/disk/by-uuid/${resume#UUID=}" ;; + LABEL=*) \ + resume="$(echo $resume | sed 's,/,\\x2f,g')" + resume="/dev/disk/by-label/${resume#LABEL=}" ;; + UUID=*) \ + resume="/dev/disk/by-uuid/${resume#UUID=}" ;; esac |