forked from TrueCloudLab/rclone
scripts: make absolute paths consistent
Change absolute binary paths in scripts to /usr/bin/env or make them relative. This allows the scripts to be used on linux distributions like NixOS, where binaries are not located in /usr/ or /bin/.
This commit is contained in:
parent
d016438243
commit
1f5e23aedb
5 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
SHELL = /bin/bash
|
SHELL = bash
|
||||||
TAG := $(shell echo `git describe --abbrev=8 --tags`-`git rev-parse --abbrev-ref HEAD` | sed 's/-\([0-9]\)-/-00\1-/; s/-\([0-9][0-9]\)-/-0\1-/; s/-\(HEAD\|master\)$$//')
|
TAG := $(shell echo `git describe --abbrev=8 --tags`-`git rev-parse --abbrev-ref HEAD` | sed 's/-\([0-9]\)-/-00\1-/; s/-\([0-9][0-9]\)-/-0\1-/; s/-\(HEAD\|master\)$$//')
|
||||||
LAST_TAG := $(shell git describe --tags --abbrev=0)
|
LAST_TAG := $(shell git describe --tags --abbrev=0)
|
||||||
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
This is a tool to decrypt file names in rclone logs.
|
This is a tool to decrypt file names in rclone logs.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
Make single page versions of the documentation for release and
|
Make single page versions of the documentation for release and
|
||||||
conversion into man pages etc.
|
conversion into man pages etc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Upload a release
|
# Upload a release
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
exec rclone --check-normalization=true --check-control=true --check-length=true info \
|
exec rclone --check-normalization=true --check-control=true --check-length=true info \
|
||||||
/tmp/testInfo \
|
/tmp/testInfo \
|
||||||
TestAmazonCloudDrive:testInfo \
|
TestAmazonCloudDrive:testInfo \
|
||||||
|
|
Loading…
Reference in a new issue