Skip to content

Commit

Permalink
Targets current dir for current user
Browse files Browse the repository at this point in the history
  • Loading branch information
targendaz2 committed Nov 26, 2019
1 parent 51ccdfc commit 9679eb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.1.3] - 2019-11-26
### Fixed
* *Actually* fixed bug where using `-feu` would ignore valid user homes
* Fixed bug where the wrong directory was targeted instead of the current user's home

## [1.1.2] - 2019-11-26
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Expand Up @@ -9,7 +9,7 @@ export PATH=/usr/bin:/bin:/usr/sbin:/sbin

project_folder=$(dirname "$0")

find "${project_folder}/payload" -type f -exec chmod 755 {} \;
find "${project_folder}/payload" -type f \( ! -iname "*.pyc" \) -exec chmod 755 {} \;

pkgbuild --root "${project_folder}/payload" \
--identifier "${IDENTIFIER}" \
Expand Down
4 changes: 2 additions & 2 deletions payload/msda.py
Expand Up @@ -113,7 +113,7 @@ def get_current_username():
('cut', '-d', ' ', '-f1'),
stdin=grep_cmd.stdout,
)
return username
return username.strip()

def gather_user_ls_paths():
gathered_users = os.listdir(USER_HOMES_LOCATION)
Expand Down Expand Up @@ -257,7 +257,7 @@ def write(self, plist=None):
if not plist:
plist = self.plist

# create parents directories if they don't exist
# create parent directories if they don't exist
create_plist_parents(plist)

with NamedTemporaryFile(prefix=TMP_PREFIX, delete=True) as tmp_plist:
Expand Down

0 comments on commit 9679eb3

Please sign in to comment.