Parcourir la source

build: improve patch script

Baptiste Augrain il y a 2 ans
Parent
commit
6fdca57be5
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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; }