Skip to content
Snippets Groups Projects
Commit a7f23f4a authored by Bob Mottram's avatar Bob Mottram
Browse files

Fix invite script

parent fc694155
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,12 @@ PROJECT_NAME='freedombone'
export TEXTDOMAIN=${PROJECT_NAME}-mesh-invite
export TEXTDOMAINDIR="/usr/share/locale"
invite=$(su -c 'sbot invite.create 1' - scuttlebot | awk -F '"' '{print $2}')
invite=$(sudo -- bash -c 'su -c "sbot invite.create 1" - scuttlebot' | awk -F '"' '{print $2}')
if [ ${#invite} -lt 10 ]; then
dialog --title $"Create Invite" \
--msgbox $"\nThe invite could not be created" 7 70
exit 1
fi
echo "$invite" | xclip -selection c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment