Add she-bang to all files

This commit is contained in:
Manuel Thalmann 2023-07-12 22:37:31 +02:00
parent c02dc0816a
commit 487c83afb2
29 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
. "$PSScriptRoot/../../../scripts/Windows/OS/Manage.ps1";

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
$env:WIN_COMPUTER_NAME = "DerGeret";
$env:SETUP_SCRIPT_NAME = [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Restore.ps1");

View file

@ -1,3 +1,4 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
source "../../Common/Scripts/choose-disk.sh";

View file

@ -1,3 +1,4 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then

View file

@ -1,3 +1,4 @@
#!/bin/bash
if [ "$XDG_SESSION_TYPE" == "wayland" ]
then
export MOZ_ENABLE_WAYLAND=1

View file

@ -1,3 +1,4 @@
#!/bin/bash
function isTruthy() {
local value;
value="$1";

View file

@ -1,3 +1,4 @@
#!/bin/bash
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../Scripts/Context.ps1";
. "$PSScriptRoot/../Software/git/Manage.ps1";
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/Manage.ps1";
. "$PSScriptRoot/Upgrade.ps1";
. "$PSScriptRoot/User.ps1";

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../Scripts/Context.ps1";
. "$PSScriptRoot/../Scripts/PersonalFiles.ps1";
. "$PSScriptRoot/../Software/Nextcloud/Manage.ps1";

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
$null = $env:WIN_COMPUTER_NAME;
$null = $env:SETUP_SCRIPT_NAME;

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../Scripts/Context.ps1";
function Update-WindowsInstallation([Context] $context)

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../Scripts/Context.ps1";
$preparedUsernameProperty = "AutoLoginUser";
$preparedPasswordProperty = "AutoLoginPassword";

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
class Context {
[string]$EntryPoint;
[string]$RootDir;

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/Context.ps1";
function Get-BackupCandidates() {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
{
if (-not (Get-Module -ListAvailable $module))

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
Import-Module "KnownFolders";
. "$PSScriptRoot/../../Scripts/Context.ps1";

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {

View file

@ -1,3 +1,4 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/Context.ps1";
$null = New-Module {