Browse Source

build: improve patch script

Baptiste Augrain 2 years ago
parent
commit
6fdca57be5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      patch.sh

+ 5 - 1
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; }