summaryrefslogtreecommitdiff
path: root/script/workspace/workspace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/workspace/workspace.lua')
-rw-r--r--script/workspace/workspace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 4c0011b3..3aebc5e0 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -48,7 +48,7 @@ end
function m.create(uri)
log.info('Workspace create: ', uri)
if uri == furi.encode '/'
- or uri == furi.encode(os.getenv 'HOME') then
+ or uri == furi.encode(os.getenv 'HOME' or '') then
client.showMessage('Error', lang.script('WORKSPACE_NOT_ALLOWED', furi.decode(uri)))
return
end