1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-20 16:33:20 +00:00

Merge pull request #1226 from mdevlamynck/fix-scripts

Shell script improvements
This commit is contained in:
Ethan P
2020-10-04 13:49:50 -07:00
committed by GitHub
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
ASSET_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Vendored Regular → Executable
+3 -1
View File
@@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
if ! which hyperfine > /dev/null 2>&1; then
echo "'hyperfine' does not seem to be installed."
Vendored Regular → Executable
+3 -1
View File
@@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
if ! which hyperfine > /dev/null 2>&1; then
echo "'hyperfine' does not seem to be installed."
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eou pipefail
+3 -1
View File
@@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
python="python3"
if ! command -v python3 &>/dev/null; then python="python"; fi