Comments (10)
Well the "spacing error" is caused by the bug itself.
from imgur-screenshot.
I changed the way i figure the source directory, tested on Ubuntu and OS X.
It should be working now 👍
from imgur-screenshot.
@Brottweiler can you confirm it's working now?
from imgur-screenshot.
It's working! But first I just downloaded the script itself, and it did not seem to work. Then I cloned the repo so I got the .versions.txt file in the same directory, then it worked. Have you tried just downloading and running the script itself? Does it manage to check the remote .version.txt?
from imgur-screenshot.
Hmm perhaps it would be a good idea to check if the file was found. if not, give a warning and fallback to empty string.
from imgur-screenshot.
In the code you can see that it runs curl -f
on the remote .version.txt
file, but if the file does not exist locally it will still result in that error that .version.txt
cannot be found, becuase it compares the remote .version.txt
with the local version of the file.
So if you only download the script, you won't have the .version.txt
file.
One idea would be to have the version number in the script itself, as a variable, instead of a separate file. Then when you run it, and have the update checker enabled, it would compare that variable with the remote .version.txt
file and see if they are the same.
If they are not the same, or remote version (.version.txt) is newer than local version (variable), it would tell you there's an update.
Because the variable version in the script will always be the same until you update the script by re-downloading it, and when you done that you have the new version in the script.
I am unable to test where I am currently, but would you not just be able to remove #L123 and #L124, then (for simplicitys sake) add
current_version="1.2.2"
to line #L22 or something?
from imgur-screenshot.
Yea, I'll put that in a variable in the next release ;)
from imgur-screenshot.
I'd need to download the whole file each time and do some extra parsing, don't like that too much.
Will probably put it at the top of the script.
from imgur-screenshot.
Better idea: I store the version in a variable in the file. The version is written to file if not found or the file doesn't match with the variable. That way I can use the file on github to compare.
from imgur-screenshot.
Was that not what I suggested? O.o
from imgur-screenshot.
Related Issues (20)
- Copr repository fails to sync for f27 HOT 3
- Graphical issue on screen capture window? HOT 1
- AUR version 1.7.4 not working properly HOT 1
- screenshot only take all black picture
- sometimes fail to call imgur-screenshot HOT 9
- [feature request] Ability to change mode by additional command line parameter HOT 2
- On Kubuntu there are black lines in the screenshots. HOT 1
- Missing response_type=pin in requests HOT 2
- Config file? HOT 1
- Uploaded pictures are smaler than my screenshot HOT 2
- Getting artifacts on the images HOT 2
- Screenshot area border disappearing HOT 6
- Run in background when Mac starts HOT 1
- Looking for a new maintainer HOT 4
- Mint 20 is Uploading from Nemo but Displaying Upload Failed HOT 6
- upload failed HOT 1
- Not working anymore HOT 1
- Need to wait for a pose HOT 1
- not honoring settings.conf HOT 1
- Config doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgur-screenshot.