Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use of python instead of python2 on linux. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lock/platform/linux/prey-lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#############################################
# Prey Linux Lock
# By Tomas Pollak - (c) 2010 Fork Ltd.
Expand Down
4 changes: 2 additions & 2 deletions retrieve/core/functions
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ get_last_bucket_in_s3(){

upload_to_ubuntu_one(){

[ -z "$(which python)" ] && log " -- Python interpreter not found! Cannot continue." && return 1
[ -z "$(which python2)" ] && log " -- Python interpreter not found! Cannot continue." && return 1

local file_to_upload="$1"
local credentials_file='credentialfile.txt'
Expand Down Expand Up @@ -236,7 +236,7 @@ upload_to_ubuntu_one(){

fi

python "${module_path}/lib/u1_upload.py" "$file_to_upload"
python2 "${module_path}/lib/u1_upload.py" "$file_to_upload"
rs=$?

rm -f "$credentials_file"
Expand Down
2 changes: 1 addition & 1 deletion retrieve/lib/u1_upload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#############################################
# Prey Ubuntu One API
# By Tomas Pollak - (c) 2011 Fork Ltd.
Expand Down
2 changes: 1 addition & 1 deletion retrieve/lib/u1rest/createfilekeystore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
#Copyright (C) 2011 by John O'Brien
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down