Add she-bang to all files
This commit is contained in:
parent
c02dc0816a
commit
487c83afb2
29 changed files with 29 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/OS/Manage.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Manage.ps1";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
$env:WIN_COMPUTER_NAME = "DerGeret";
|
$env:WIN_COMPUTER_NAME = "DerGeret";
|
||||||
$env:SETUP_SCRIPT_NAME = [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Restore.ps1");
|
$env:SETUP_SCRIPT_NAME = [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Restore.ps1");
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||||
|
|
||||||
source "../../Common/Scripts/choose-disk.sh";
|
source "../../Common/Scripts/choose-disk.sh";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
# Elevate script
|
# Elevate script
|
||||||
if [ ! "$UID" -eq 0 ]
|
if [ ! "$UID" -eq 0 ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
if [ "$XDG_SESSION_TYPE" == "wayland" ]
|
if [ "$XDG_SESSION_TYPE" == "wayland" ]
|
||||||
then
|
then
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
function isTruthy() {
|
function isTruthy() {
|
||||||
local value;
|
local value;
|
||||||
value="$1";
|
value="$1";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
contextRoot="$(mktemp -d)";
|
contextRoot="$(mktemp -d)";
|
||||||
pushd "$contextRoot" > /dev/null;
|
pushd "$contextRoot" > /dev/null;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
. "$PSScriptRoot/../Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/Manage.ps1";
|
. "$PSScriptRoot/Manage.ps1";
|
||||||
. "$PSScriptRoot/Upgrade.ps1";
|
. "$PSScriptRoot/Upgrade.ps1";
|
||||||
. "$PSScriptRoot/User.ps1";
|
. "$PSScriptRoot/User.ps1";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
. "$PSScriptRoot/../Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/../Scripts/PersonalFiles.ps1";
|
. "$PSScriptRoot/../Scripts/PersonalFiles.ps1";
|
||||||
. "$PSScriptRoot/../Software/Nextcloud/Manage.ps1";
|
. "$PSScriptRoot/../Software/Nextcloud/Manage.ps1";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
$null = $env:WIN_COMPUTER_NAME;
|
$null = $env:WIN_COMPUTER_NAME;
|
||||||
$null = $env:SETUP_SCRIPT_NAME;
|
$null = $env:SETUP_SCRIPT_NAME;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
. "$PSScriptRoot/../Scripts/Context.ps1";
|
||||||
|
|
||||||
function Update-WindowsInstallation([Context] $context)
|
function Update-WindowsInstallation([Context] $context)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
. "$PSScriptRoot/../Scripts/Context.ps1";
|
||||||
$preparedUsernameProperty = "AutoLoginUser";
|
$preparedUsernameProperty = "AutoLoginUser";
|
||||||
$preparedPasswordProperty = "AutoLoginPassword";
|
$preparedPasswordProperty = "AutoLoginPassword";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
class Context {
|
class Context {
|
||||||
[string]$EntryPoint;
|
[string]$EntryPoint;
|
||||||
[string]$RootDir;
|
[string]$RootDir;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/Context.ps1";
|
. "$PSScriptRoot/Context.ps1";
|
||||||
|
|
||||||
function Get-BackupCandidates() {
|
function Get-BackupCandidates() {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
||||||
{
|
{
|
||||||
if (-not (Get-Module -ListAvailable $module))
|
if (-not (Get-Module -ListAvailable $module))
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
Import-Module "KnownFolders";
|
Import-Module "KnownFolders";
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
|
|
Loading…
Reference in a new issue