sekrit: replace OPTIND -> $OPTIND inside $(( ))

This commit is contained in:
Lucas 2022-07-30 14:34:17 +00:00
parent a1a25aa80a
commit 7dbf7e8711

View File

@ -103,7 +103,7 @@ sekrit_cp()
*) usage ;; *) usage ;;
esac esac
done done
shift $((OPTIND - 1)) shift $(($OPTIND - 1))
[ $# -eq 1 ] || usage [ $# -eq 1 ] || usage
key=$1 key=$1
@ -125,7 +125,7 @@ sekrit_gen()
*) usage ;; *) usage ;;
esac esac
done done
shift $((OPTIND - 1)) shift $(($OPTIND - 1))
[ $# -le 1 ] || usage [ $# -le 1 ] || usage
@ -188,7 +188,7 @@ sekrit_rm()
*) usage ;; *) usage ;;
esac esac
done done
shift $((OPTIND - 1)) shift $(($OPTIND - 1))
[ $# -ge 1 ] || usage [ $# -ge 1 ] || usage