Skip to content

Commit ad5ba69

Browse files
authored
Merge pull request #3304 from BsAtHome/fix_shellcheck-cd-exit
Fix more shellcheck problems
2 parents d7588c4 + 2d257a1 commit ad5ba69

29 files changed

Lines changed: 101 additions & 87 deletions

configs/apps/gladevcp/animated-backdrop/animated-backdrop.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./cairodraw.py ./cairodraw.ui

configs/apps/gladevcp/by-widget/combobox.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u combobox.py combobox.ui

configs/apps/gladevcp/by-widget/combobox_manual_list.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./combobox_manual_list.py ./combobox_manual_list.ui

configs/apps/gladevcp/by-widget/radiobutton.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./radio.py ./radio.ui

configs/apps/gladevcp/by-widget/sourceview.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./sourceview.py ./sourceview.ui

configs/apps/gladevcp/by-widget/spinbutton.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u spinbutton.py spinbutton.ui

configs/apps/gladevcp/class-callback/class_callback.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./class_callback.py -H ./class_callback.hal ./class_callback.ui

configs/apps/gladevcp/colored-label/coloredlabel.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./coloredlabel.py -H ./coloredlabel.hal ./coloredlabel.ui

configs/apps/gladevcp/complex/complex.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo -u ./complex.py -H ./complex.hal ./complex.ui

configs/apps/gladevcp/glade-manual.demo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
thisfile=$(readlink -f "$0")
44
thisdir=$(dirname "$thisfile")
5-
cd "$thisdir"
5+
cd "$thisdir" || { echo "E: Could not change directory to '$thisdir'"; exit 1; }
66

77
gladevcp_demo ./glade-manual.ui

0 commit comments

Comments
 (0)