You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
340 B
24 lines
340 B
#!/bin/bash
|
|
|
|
CMD_1=$1
|
|
CMD_2=$2
|
|
|
|
EDGE_EXE="/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
|
|
|
|
check_command ()
|
|
{
|
|
if [ -z "$CMD_1" ]
|
|
then
|
|
echo no argument was given
|
|
else
|
|
if [ "$CMD_1" == "deepl" ]
|
|
then
|
|
exec "$EDGE_EXE" \"\" www.deepl.com
|
|
else
|
|
echo "Command not found : $CMD_1"
|
|
fi
|
|
fi
|
|
}
|
|
|
|
check_command
|