This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:scripts:scriptstarter [2015/02/19 17:00] – lunetikk | linux:scripts:scriptstarter [2018/12/20 17:40] (current) – Discussion status changed lunetikk | ||
---|---|---|---|
Line 5: | Line 5: | ||
< | < | ||
- | < | + | < |
#!/bin/bash | #!/bin/bash | ||
Line 37: | Line 37: | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
- | ==== Interpreter | + | ==== Integer |
Reason:\\ | Reason:\\ | ||
Ubuntu says that it cant compare because your variable isnt integer. | Ubuntu says that it cant compare because your variable isnt integer. | ||
+ | \\ | ||
\\ | \\ | ||
Fix:\\ | Fix:\\ | ||
Use == instead of -eq | Use == instead of -eq | ||
+ | \\ | ||
+ | \\ | ||
+ | ~~DISCUSSION: |