diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:23:08 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-09 19:23:08 +0100 |
| commit | 2836d2f4452b538e24ca6b85ee27df7bce0b69b2 (patch) | |
| tree | 8c45994a9ee4b80589f718c7eb0e647c6c53881f /scripts/sdep-edit | |
| parent | 0bcca7b6808a02af3c4758c30eec9984d44dfac7 (diff) | |
| download | sdep-2836d2f4452b538e24ca6b85ee27df7bce0b69b2.tar.gz sdep-2836d2f4452b538e24ca6b85ee27df7bce0b69b2.zip | |
Simplified scripts build process (removed SDEPDATA).
Diffstat (limited to '')
| -rwxr-xr-x | scripts/sdep-edit | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/sdep-edit b/scripts/sdep-edit index d19a3f5..b561dd8 100755 --- a/scripts/sdep-edit +++ b/scripts/sdep-edit | |||
| @@ -5,7 +5,9 @@ | |||
| 5 | # Usage: sdep-edit [file] | 5 | # Usage: sdep-edit [file] |
| 6 | # No options = once | 6 | # No options = once |
| 7 | 7 | ||
| 8 | file="SDEPDATA/${1:-once}" | 8 | sdepdata="${XDG_DATA_HOME:-$HOME/.local}/sdep" |
| 9 | |||
| 10 | file="$sdepdata/${1:-once}" | ||
| 9 | editor=${VISUAL:-vi} | 11 | editor=${VISUAL:-vi} |
| 10 | 12 | ||
| 11 | $editor "$file" | 13 | $editor "$file" |
