escape $1 variable in the xdg script where needed

ubuntu/yakkety
Sebastien Bacher 9 years ago
parent 2dd9d8a055
commit 377b075dcc

@ -9,7 +9,7 @@ PREFIX=binary/boot/filesystem.dir
mkdir -p $PREFIX/usr/local/bin mkdir -p $PREFIX/usr/local/bin
cat >$PREFIX/usr/local/bin/xdg-open <<EOF cat >$PREFIX/usr/local/bin/xdg-open <<EOF
#!/bin/sh #!/bin/sh
dbus-send --print-reply --session --dest=com.canonical.SafeLauncher / com.canonical.SafeLauncher.OpenURL string:"$1" dbus-send --print-reply --session --dest=com.canonical.SafeLauncher / com.canonical.SafeLauncher.OpenURL string:"\$1"
EOF EOF
chmod 755 $PREFIX/usr/local/bin/xdg-open chmod 755 $PREFIX/usr/local/bin/xdg-open

Loading…
Cancel
Save