Skip to content

Commit

Permalink
πŸ› fix cfg macro for platform detection
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixr-codes committed Oct 18, 2024
1 parent 861f4e1 commit a0682a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ mod location {
}

pub fn get() -> Option<PathBuf> {
if cfg!(android) {
if cfg!(target_os = "android") {
android_termux()
} else if cfg!(ios) {
} else if cfg!(target_os = "ios") {
log::error!("iOS devices are not supported for syncing yet");
None
} else if cfg!(windows) {
} else if cfg!(target_os = "windows") {
windows()
} else if cfg!(linux) {
} else if cfg!(target_os = "linux") {
linux()
} else {
log::error!("Your OS is not supported for syncing");
Expand Down

0 comments on commit a0682a2

Please sign in to comment.