Please see the link in my signature about how to use CODE tags to enclose your script in them and have it appear as code.
Do you see the complaint?
Quote:
mv: missing destination file operand after `/opt/oracle/weblogic/12.2/OPatch'
|
This is telling you where the error is located. You do not have a destination file for your mv command. It would appear that you either do not have a valid $PATCH_HOME variable or valid $var variable.
Since your comment was that it did not store it in var, then my assumption is that you mean /var, and thus that part of your script should not say $var, but instead /var