build: improve patch script
This commit is contained in:
parent
7fffa6bcf1
commit
6fdca57be5
1 changed files with 5 additions and 1 deletions
6
patch.sh
6
patch.sh
|
@ -1,6 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
FILE="../patches/${1}.patch"
|
||||
if [[ "${1}" == *patch ]]; then
|
||||
FILE="../patches/${1}"
|
||||
else
|
||||
FILE="../patches/${1}.patch"
|
||||
fi
|
||||
|
||||
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue