Skip to content

Commit

Permalink
Merge pull request #12 from ams-tschoening/ghi_11_integer_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
hunleyd authored Oct 31, 2022
2 parents adcc42e + ad18b6c commit cb6fb02
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions btrfs-auto-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ argsp_cmdline()
;;
(-l|--label)
label="$2"
while test "${label}" -gt 0
do
if test -n "${label}"
then
case $label in
([![:alnum:]_.:\ -]*)
log error "The $1 parameter must be alphanumeric."
Expand All @@ -237,7 +237,7 @@ argsp_cmdline()
;;
esac
prefix="${prefix#?}"
done
fi

ret_val[label]="$2"
shift 2
Expand All @@ -250,8 +250,8 @@ argsp_cmdline()
;;
(-p|--prefix)
prefix="$2"
while test "${prefix}" -gt 0
do
if test -n "${prefix}"
then
case $prefix in
([![:alnum:]_.:\ -]*)
log error "The $1 parameter must be alphanumeric."
Expand All @@ -260,7 +260,7 @@ argsp_cmdline()
;;
esac
prefix="${prefix#?}"
done
fi

ret_val[prefix]="$2"
shift 2
Expand Down

0 comments on commit cb6fb02

Please sign in to comment.