wineshelllink: Use "=" instead of "==" to compare strings.
This commit is contained in:
parent
5b8282120a
commit
0931b4feaf
|
@ -101,7 +101,7 @@ directory_entry()
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Directory
|
Type=Directory
|
||||||
EOF
|
EOF
|
||||||
if [ "$1" == "wine" ] ; then
|
if [ "$1" = "wine" ] ; then
|
||||||
echo "Name=Wine"
|
echo "Name=Wine"
|
||||||
echo "Icon=wine"
|
echo "Icon=wine"
|
||||||
else
|
else
|
||||||
|
@ -208,7 +208,7 @@ if [ $mode = "menu" ] ; then
|
||||||
mkdir -p "$xdg_data_dir/applications/wine/`dirname "$link"`"
|
mkdir -p "$xdg_data_dir/applications/wine/`dirname "$link"`"
|
||||||
|
|
||||||
linkpath=`dirname "$link" | sed 's!/!-!g'`
|
linkpath=`dirname "$link" | sed 's!/!-!g'`
|
||||||
if [ "$linkpath" == "." ] ; then
|
if [ "$linkpath" = "." ] ; then
|
||||||
linkpath=""
|
linkpath=""
|
||||||
else
|
else
|
||||||
linkpath="-$linkpath"
|
linkpath="-$linkpath"
|
||||||
|
|
Loading…
Reference in New Issue