ensure .vscode dir exists

This commit is contained in:
Tim Felgentreff 2020-12-04 13:56:12 +01:00
parent d9c6339d74
commit 5cbfbe8172
2 changed files with 12 additions and 0 deletions

View file

@ -17,6 +17,9 @@ if (-not (Test-Path "$stratagus_folder\\.vscode\\settings.json")) {
if (-not (Test-Path "$stratagus_folder\\..\\wargus")) {
git clone https://github.com/Wargus/wargus "$stratagus_folder\\..\\wargus"
}
if (-not (Test-Path "$stratagus_folder\\..\\wargus\\.vscode")) {
mkdir "$stratagus_folder\\..\\wargus\\.vscode"
}
if (-not (Test-Path "$stratagus_folder\\..\\wargus\\.vscode\\settings.json")) {
Copy-Item "$stratagus_folder\\.vscode\\settings.windows.wargus.json" "$stratagus_folder\\..\\wargus\\.vscode\\settings.json"
}
@ -24,6 +27,9 @@ if (-not (Test-Path "$stratagus_folder\\..\\wargus\\.vscode\\launch.json")) {
Copy-Item "$stratagus_folder\\.vscode\\launch.wargus.json" "$stratagus_folder\\..\\wargus\\.vscode\\launch.json"
}
if (-not (Test-Path "$stratagus_folder\\..\\war1gus\\.vscode")) {
mkdir "$stratagus_folder\\..\\war1gus\\.vscode"
}
if (-not (Test-Path "$stratagus_folder\\..\\war1gus")) {
git clone https://github.com/Wargus/war1gus "$stratagus_folder\\..\\war1gus"
}

View file

@ -4,6 +4,9 @@ stratagus_folder="$1"
if [ ! -d "${stratagus_folder}/../wargus" ]; then
git clone https://github.com/Wargus/wargus "${stratagus_folder}/../wargus"
fi
if [ ! -d "${stratagus_folder}/../wargus/.vscode" ]; then
mkdir "${stratagus_folder}/../wargus/.vscode"
fi
if [ ! -e "${stratagus_folder}/../wargus/.vscode/settings.json" ]; then
cp "${stratagus_folder}/.vscode/settings.linux.wargus.json" "${stratagus_folder}/../wargus/.vscode/settings.json"
fi
@ -14,6 +17,9 @@ fi
if [ ! -d "${stratagus_folder}/../war1gus" ]; then
git clone https://github.com/Wargus/war1gus "${stratagus_folder}/../war1gus"
fi
if [ ! -d "${stratagus_folder}/../war1gus/.vscode" ]; then
mkdir "${stratagus_folder}/../war1gus/.vscode"
fi
if [ ! -e "${stratagus_folder}/../war1gus/.vscode/settings.json" ]; then
cp "${stratagus_folder}/.vscode/settings.linux.war1gus.json" "${stratagus_folder}/../war1gus/.vscode/settings.json"
fi