scripts/nsis.py: Drop the unnecessary path separator
authorBin Meng <bin.meng@windriver.com>
Thu, 8 Sep 2022 13:28:11 +0000 (21:28 +0800)
committerStefan Weil <sw@weilnetz.de>
Mon, 31 Oct 2022 09:06:11 +0000 (10:06 +0100)
There is no need to append a path separator to the destination
directory that is passed to "make install".

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20220908132817.1831008-2-bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
scripts/nsis.py

index 462d6cac3b62e936abc16fd7c60828cc46c2f443..bbb41d9386989260c4a3b56b721ddf503ce70039 100644 (file)
@@ -30,7 +30,7 @@ def main():
 
     destdir = tempfile.mkdtemp()
     try:
-        subprocess.run(["make", "install", "DESTDIR=" + destdir + os.path.sep])
+        subprocess.run(["make", "install", "DESTDIR=" + destdir])
         with open(
             os.path.join(destdir + args.prefix, "system-emulations.nsh"), "w"
         ) as nsh, open(