Skip to content

Commit

Permalink
Create BashTemp.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinpei2008 authored Jan 5, 2023
1 parent 1ddc84a commit 1d6e688
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions BashTemp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

usage() {
echo "Usage: ${0} [-p|--Path] [-o|--OutPath]" 1>&2
exit 1
}
while [[ $# -gt 0 ]];do
key=${1}
case ${key} in
-p|--Path)
PATH=${2}
shift 2
;;
-o|--OutPath)
OUTPATH=${2}
shift 2
;;
*)
usage
shift
;;
esac
done

0 comments on commit 1d6e688

Please sign in to comment.