Skip to content

Commit 1a089b5

Browse files
committed
Removes 20 second delay for rootful mode install script on WSL
Signed-off-by: linghengqian <[email protected]>
1 parent 7f59ba0 commit 1a089b5

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

install.sh

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,6 @@ is_dry_run() {
221221
fi
222222
}
223223

224-
is_wsl() {
225-
case "$(uname -r)" in
226-
*microsoft* ) true ;; # WSL 2
227-
*Microsoft* ) true ;; # WSL 1
228-
* ) false;;
229-
esac
230-
}
231-
232224
is_darwin() {
233225
case "$(uname -s)" in
234226
*darwin* ) true ;;
@@ -402,18 +394,6 @@ do_install() {
402394
lsb_dist=$( get_distribution )
403395
lsb_dist="$(echo "$lsb_dist" | tr '[:upper:]' '[:lower:]')"
404396

405-
if is_wsl; then
406-
echo
407-
echo "WSL DETECTED: We recommend using Docker Desktop for Windows."
408-
echo "Please get Docker Desktop from https://www.docker.com/products/docker-desktop/"
409-
echo
410-
cat >&2 <<-'EOF'
411-
412-
You may press Ctrl+C now to abort this script.
413-
EOF
414-
( set -x; sleep 20 )
415-
fi
416-
417397
case "$lsb_dist" in
418398

419399
ubuntu)

0 commit comments

Comments
 (0)