You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pengwin-setup.d/powershell.sh
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,15 @@
3
3
# shellcheck source=common.sh
4
4
source"$(dirname "$0")/common.sh""$@"
5
5
6
+
# shellcheck disable=SC2155
7
+
declare dist="$(uname -m)"
8
+
if [[ ${dist}!="x86_64" ]];then
9
+
message --title "POWERSHELL" --msgbox "PowerShell installation is only supported on x86_64 architecture. Microsoft repositories do not provide PowerShell packages for non-x86_64 architectures." 10 70
10
+
echo"Skipping POWERSHELL - not supported on non-x86_64 architecture"
11
+
exit 1
12
+
fi
13
+
unset dist
14
+
6
15
if (confirm --title "POWERSHELL" --yesno "Would you like to download and install Powershell?" 8 55);then
Copy file name to clipboardExpand all lines: rpm/pengwin-setup.d/powershell.sh
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,15 @@
3
3
# shellcheck source=common.sh
4
4
source"$(dirname "$0")/common.sh""$@"
5
5
6
+
# shellcheck disable=SC2155
7
+
declare dist="$(uname -m)"
8
+
if [[ ${dist}!="x86_64" ]];then
9
+
message --title "POWERSHELL" --msgbox "PowerShell installation is only supported on x86_64 architecture. Microsoft repositories do not provide PowerShell packages for other architectures." 10 70
10
+
echo"Skipping POWERSHELL - not supported on non-x86_64 architecture"
11
+
exit 1
12
+
fi
13
+
unset dist
14
+
6
15
if (confirm --title "POWERSHELL" --yesno "Would you like to download and install Powershell?" 8 55);then
0 commit comments