From 3ea9fb0f35dce44d1fc910d101e52cc79999eb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Steinpa=C3=9F?= Date: Fri, 15 Jan 2021 18:00:52 +0100 Subject: [PATCH 1/2] make shebang fully posix compatible --- lug-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index d5d9cf2..29eb4aa 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################ # Star Citizen's Linux Users Group Helper Script From ec860270bbffaab76051a503cce2582f8c35edbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Steinpa=C3=9F?= Date: Fri, 15 Jan 2021 18:02:28 +0100 Subject: [PATCH 2/2] Use mktemp to generate tmp dir. --- lug-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index 29eb4aa..608e2a8 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -57,7 +57,7 @@ fi # .config subdirectory conf_subdir="starcitizen-lug" -tmp_dir="/tmp" +tmp_dir="$(mktemp -d)" # The game's user subdirectory name user_subdir_name="USER"