This commit is contained in:
Benjamin Palko 2026-10-10 12:17:50 -04:00
commit 82164a46ac
4 changed files with 43 additions and 0 deletions

25
main.cpp Normal file
View file

@ -0,0 +1,25 @@
#include <filesystem>
#include <fstream>
#include <iostream>
#include <stdio.h>
using namespace std;
using namespace std::filesystem;
const path PACMAN_HOOKS = "/etc/pacman.d/hooks";
//
// main is where all program execution starts
//
//
int main(int argc, char **argv) {
if (!exists(PACMAN_HOOKS)) {
create_directory(PACMAN_HOOKS);
cout << "Directory created: " << PACMAN_HOOKS << endl;
return 0;
}
printf("Hello there.\n");
return 0;
}