Make `explorer work without arguments as well

This commit is contained in:
Fernando Schauenburg 2022-01-21 12:02:24 +01:00
parent cf3344ab48
commit 8d9faec315

View file

@ -1,5 +1,9 @@
#!/bin/sh
/mnt/c/Windows/explorer.exe "$(wslpath -w "$@")"
if [ $# -gt 0 ]; then
/mnt/c/Windows/explorer.exe "$(wslpath -w "$@")"
else
/mnt/c/Windows/explorer.exe
fi
# The Windows Explorer binary seems to always return 1, even though it
# succesully opens the desired folder. So, executing `true` here is just a