diff --git a/inxi b/inxi index a35f70f..cb8d8f8 100755 --- a/inxi +++ b/inxi @@ -9467,9 +9467,7 @@ get_dev_processed_item() get_patch_version_string() { - # note: bash 3 does not support: ${SELF_PATCH##+(0)} - SELF_PATCH=${SELF_PATCH#0} # strip leading zero - SELF_PATCH=${SELF_PATCH#0} # strip leading zero + SELF_PATCH=${SELF_PATCH##*[0]} # strip leading zero(s) if [[ -n $SELF_PATCH ]];then SELF_PATCH="-$SELF_PATCH"