aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/guix.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/guix.rb b/lib/guix.rb
index a9cc7b0..a228ce4 100644
--- a/lib/guix.rb
+++ b/lib/guix.rb
@@ -22,4 +22,8 @@ module Guix
def self.available_locally?
File.exist?('/var/guix/daemon-socket/socket')
end
+
+ def self.valid_store_path?(path)
+ path.starts_with?('/gnu/store/') && !path.match(/\s/)
+ end
end