From 6fdca57be52507ca6b678b9331e1723c6bbb0880 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Wed, 11 Jan 2023 12:22:54 +0100 Subject: [PATCH] build: improve patch script --- patch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/patch.sh b/patch.sh index ece3299..37b37a4 100755 --- a/patch.sh +++ b/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; }