Corrected an error at mail.sh

master
key 4 years ago
parent c94ed04941
commit 7996e549fa

@ -49,7 +49,6 @@ command_translator ()
TO_OPEN=$OTLK_SENT TO_OPEN=$OTLK_SENT
else else
echo Invalid command : $CMD_1 echo Invalid command : $CMD_1
exit
fi fi
} }
@ -69,6 +68,7 @@ check_command ()
goto_folder goto_folder
else else
command_translator command_translator
TO_OPEN=$TO_OPEN/$CMD_2
goto_folder goto_folder
fi fi
fi fi

@ -4,6 +4,7 @@ CMD_1=$1
CMD_2=$2 CMD_2=$2
EDGE_EXE="/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe" EDGE_EXE="/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
TEAMS_EXE="/mnt/c/Users/144311/AppData/Local/Microsoft/Teams/Update.exe"
check_command () check_command ()
{ {
@ -15,15 +16,15 @@ check_command ()
if [ "$CMD_1" == "deepl" ] if [ "$CMD_1" == "deepl" ]
then then
exec "$EDGE_EXE" www.deepl.com & exec "$EDGE_EXE" www.deepl.com &
exit
elif [ "$CMD_1" == "draw" ] elif [ "$CMD_1" == "draw" ]
then then
exec "$EDGE_EXE" www.draw.io & exec "$EDGE_EXE" www.draw.io &
exit
elif [ "$CMD_1" == "citrix" ] elif [ "$CMD_1" == "citrix" ]
then then
exec "$EDGE_EXE" https://unityapps.arrow.com/Citrix/StoreWeb/ & exec "$EDGE_EXE" https://unityapps.arrow.com/Citrix/StoreWeb/ &
exit elif [ "$CMD_1" == "teams" ]
then
exec "$TEAMS_EXE" --processStart "Teams.exe" &
else else
echo "Command not found : $CMD_1" echo "Command not found : $CMD_1"
fi fi

Loading…
Cancel
Save