Fix incorrect installation conditions

This commit is contained in:
Manuel Thalmann 2024-03-20 16:53:32 +01:00
parent 5055eddb82
commit 90bd9d0e4f

View file

@ -17,7 +17,7 @@ if ! isTruthy "${SKIP_POWERSHELL}"
then then
profileFile="$(pwsh -c '$PROFILE')"; profileFile="$(pwsh -c '$PROFILE')";
if [ ! -f "$profileFile" ] || grep "\baliae\b" "$profileFile" > /dev/null if [ ! -f "$profileFile" ] || ! grep "\baliae\b" "$profileFile" > /dev/null
then then
install -dm755 "$(dirname "$profileFile")"; install -dm755 "$(dirname "$profileFile")";
echo "aliae init pwsh | Invoke-Expression" >> "$profileFile"; echo "aliae init pwsh | Invoke-Expression" >> "$profileFile";