summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3eb7e95..e4bc296 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,7 +14,11 @@ async fn run() -> Result<()> {
file_path: PathBuf::new(),
executable: args.executable.unwrap_or(args.appname.clone()),
source: Source {
- identifier: "raw_url".to_string(),
+ identifier: if args.github {
+ "git.github".to_string()
+ } else {
+ "raw_url".to_string()
+ },
meta: SourceMetadata { url: args.from },
},
};