From d48a65970243b9cedf10dfb2e1f6efa8a95d8e09 Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 19 Oct 2021 16:24:20 +0200 Subject: [PATCH] pwsh again --- .github/workflows/symlink-test.yml | 10 ++++++++-- bang | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) delete mode 120000 bang diff --git a/.github/workflows/symlink-test.yml b/.github/workflows/symlink-test.yml index 02c39f6..fdd4bae 100644 --- a/.github/workflows/symlink-test.yml +++ b/.github/workflows/symlink-test.yml @@ -23,12 +23,12 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - # symlink + # symlink via bash + # this does *not* create a symlink, but a directory #- name: Symlink Bash # shell: bash # run: | # if ! [ -L bang ]; then - # # however, this does *not* create a symlink, but a directory # ln -s duh bang # ls -l # git config --global user.email "stephan@REDACTED.com" @@ -39,11 +39,17 @@ jobs: # fi # symlink via pwsh + # this creates a 'bang' file that contains 'duh' + # on local machine, it fails 'New-Item: Administrator privilege required for this operation.' - name: Symlink Pwsh shell: pwsh run: | if (! (test-path bang)) { New-Item -ItemType SymbolicLink -Name bang -Target duh + write-output "DIR:" + ls . + write-output "DIR:" + ls bang git config --global user.email "stephan@REDACTED.com" git config --global user.name "Stephan" git config --global core.symlinks "true" diff --git a/bang b/bang deleted file mode 120000 index 426bf5a..0000000 --- a/bang +++ /dev/null @@ -1 +0,0 @@ -duh \ No newline at end of file