mirror of
https://github.com/rancher-sandbox/rancher-desktop.git
synced 2021-10-13 00:04:06 +03:00
Updating nerdctl script to use sh instead of bash
sh is required for WSL while bash is not. This makes the script more widely usable Signed-off-by: Matt Farina <matt.farina@suse.com>
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -eu -o pipefail
|
||||
#!/bin/sh
|
||||
|
||||
if [[ $(cat /proc/version | grep -i Microsoft) ]]; then
|
||||
if grep -q -i 'microsoft.*wsl' /proc/version; then
|
||||
exec /mnt/wsl/rancher-desktop/bin/nerdctl "$@"
|
||||
else
|
||||
limaloc="${XDG_DATA_HOME:-$HOME/.local/share/rancher-desktop}"
|
||||
scriptname="${BASH_SOURCE[0]}"
|
||||
limaloc="${XDG_DATA_HOME:-$HOME/.local/share}/rancher-desktop"
|
||||
scriptname="$0"
|
||||
while [ -L "${scriptname}" ]; do
|
||||
scriptname="$(readlink "${scriptname}")"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user