Skip to content

Commit

Permalink
i hope it fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Sep 26, 2024
1 parent bb29095 commit 3571fea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ jobs:
cd customfetch-git
sudo -u nobody makepkg -si --noconfirm
#- name: Setup SSH session
# uses: mxschmitt/action-tmate@v3
- name: Setup SSH session
uses: mxschmitt/action-tmate@v3

- name: Test neofetch
run: neofetch
Expand Down
4 changes: 2 additions & 2 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ void ctrl_d_handler(const std::istream& cin)
std::string expandVar(std::string ret)
{
const char* env;
if (ret.front() == '~')
if (ret[0] == '~')
{
env = std::getenv("HOME");
if (env == nullptr)
die("FATAL: $HOME enviroment variable is not set (how?)");

ret.replace(0, 1, env); // replace ~ with the $HOME value
}
else if (ret.front() == '$')
else if (ret[0] == '$')
{
ret.erase(0, 1);

Expand Down

0 comments on commit 3571fea

Please sign in to comment.